-
Notifications
You must be signed in to change notification settings - Fork 9
Taskserver troubleshooting
If you see errors during statistics or synchronization requests, you may consider the following notes.
Server Errors
The server may generate many errors (See Protocol), but the following is a list of the ones most in need of special handling:
200 Success 201 No change 301 Redirect 430 Access denied 431 Account suspended 432 Account terminated 5xx ErrorThe 200 indicates success, and that a change was recorded. The 201 indicates success but no changes were necessary. The 301 is a redirect message indicating that the client MUST re-request from a new server. The 43x series messages are account-related. Any 5xx series code is a server error of some kind. All errors consist of a code and a status message.
- https://gothenburgbitfactory.github.io/taskserver-troubleshooting/
- https://taskwarrior.org/docs/design/protocol.html
- https://taskwarrior.org/docs/taskserver/setup.html
The following is from https://github.com/GothenburgBitFactory/taskwarrior/blob/v2.5.3/src/commands/CmdSync.cpp#L274-L278.
else if (code == "201")
{
Context::getContext ().footnote ("Sync successful. No changes.");
status = 0;
}The following is from https://github.com/GothenburgBitFactory/taskwarrior/blob/v2.5.3/src/commands/CmdSync.cpp#L287-L291.
else if (code == "430")
{
Context::getContext ().error ("Sync failed. Either your credentials are incorrect, or your account doesn't exist on the Taskserver.");
status = 2;
}