ForumsDevelopersYou didn't send any tasks to add/edit


You didn't send any tasks to add/edit
Author Message
dgtale

Posted: May 10, 2013
Score: 1 Reference
I'm the developer of the free Android app "DGT GTD".
The sync with Toodledo is available and working smoothly since months.

Suddenly, today, several users are reporting the following error message: "4 : You didn't send any tasks to add" (or edit).

Have you recently (today) changed the behaviour of your /task service?

Unfortunately I can't provide more details because I'm not able to reproduce it.
Jake

Toodledo Founder
Posted: May 10, 2013
Score: 0 Reference
We have not changed our API in quite some time. This error happens when the "tasks" parameter that you post to our api is empty or is invalid json. We did recently updated the version of PHP that we use, and this may have resulted in our json parser being more strict with regard to malformed json. I will look into this. Maybe you can also investigate on your end.
dgtale

Posted: May 10, 2013
Score: 0 Reference
Additional information:
API invocations to "tasks/add.php" and "tasks/edit.php" are made by a POST call.


This message was edited May 10, 2013.
dgtale

Posted: May 10, 2013
Score: 0 Reference
Finally I'm able to reproduce it on my Android test device.
This is the json string sent by the POST call (and it's a valid json string):
[
{
"id": 156416906,
"title": "ciao 2",
"tag": "Llama tag1,Llama tag2",
"folder": 3547430,
"context": 1092538,
"goal": 323800,
"parent": 0,
"duedate": 0,
"duedatemod": "0",
"startdate": 0,
"duetime": 0,
"starttime": 0,
"remind": 0,
"repeat": "",
"repeatfrom": 0,
"status": 2,
"length": 0,
"priority": 0,
"star": 0,
"added": 1367418926,
"modified": 1367501050,
"completed": 0,
"note": "",
"meta": "{\"DGT_GTD\":{\"type\":0,\"hide\":0,\"hide_until\":0,\"created\":1367418926692,\"modified\":1367501 050175}}"
}
]
Jake

Toodledo Founder
Posted: May 10, 2013
Score: 0 Reference
I think we may have found the problem and fixed it. There was a small configuration issue on one of our 6 web servers, which would explain why it was hard to reproduce. The problem was with the treatment of the backslash character inside your nested json array inside the meta field.

Please let us know if you continue to have this error.
dgtale

Posted: May 10, 2013
Score: 0 Reference
Thanks a lot, it's working fine now.
You cannot reply yet

U Back to topic home

R Post a reply

To participate in these forums, you must be signed in.