You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that Request Timeout parameter has stopped working. Can't get activities for 30 days period 'cause of 30 seconds timeout while it should be 300 seconds.
To Reproduce
Go to Settings and change Request Timeout value from 30 to 300;
Close all AW tabs and restart aw-server via tray;
Open Activity screen and change time period to 30 days - NOK: AxiosError: timeout of 30000ms exceeded is raised, i.e. request timeout hasn't changed.
Expected behavior
Categories will be shown after some time, more than 30 seconds, but less than 300 (worked OK in beta v0.12.3b7).
Documentation
aw-server's logs are attached. There are some errors, although they don't appear right when timeout error is raised. After some retries you can get sqlite3.OperationalError: database is locked error which is hardly relevant to the bug:
It's caused by us switching to using server-stored settings, where the request timeout value is stored, but to access the settings we need aw-client initialized, which is where the timeout is passed in. Thus it ends up with the default timeout.
Fixing it now.
ErikBjare
added a commit
to ActivityWatch/aw-webui
that referenced
this issue
Nov 15, 2023
Describe the bug
It seems that Request Timeout parameter has stopped working. Can't get activities for
30 days
period 'cause of 30 seconds timeout while it should be 300 seconds.To Reproduce
30
to300
;30 days
- NOK: AxiosError: timeout of 30000ms exceeded is raised, i.e. request timeout hasn't changed.Expected behavior
Categories will be shown after some time, more than 30 seconds, but less than 300 (worked OK in beta v0.12.3b7).
Documentation
aw-server's logs are attached. There are some errors, although they don't appear right when timeout error is raised. After some retries you can get sqlite3.OperationalError: database is locked error which is hardly relevant to the bug:
The text was updated successfully, but these errors were encountered: