ForumsDevelopersError: You didn't send any tasks to add.


Error: You didn't send any tasks to add.
Author Message
todo

Posted: Jun 20, 2012
Score: 0 Reference
I am getting a failure trying to add a task via 2/tasks/add.php

For most of the values I tried there is not problem at all (so I am fairly sure I am not doing anything fundamentally wrong), but apparently some characters in the string I send manage to confuse the receiving code.

Here is is a sample string (goes after '/add.php?' )that results in this message

"key=b22f3061d07afde9f81b67ad051198ce&tasks=[{"title"%3a"test"%2c"reschedule"%3a"1"%2c"note"%3a"I%E2 %80%99ve%20created%20small%20batch%20script%20to%20automate%20the%20steps%20to%20copy%20and%20deploy %20a%20test%20drop%2C%20as%20well%20as%20the%20VHD%20mounting%20and%20unmounting%20operations%3A%0D% 0A%5C%5Cbvtsrv2%5CTeam%5Cfadim%5CVHD%20Mounting%20Scripts%0D%0A%0D%0ATo%20copy%20and%20automatically %20mount%20a%20test%20drop%3A%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20InstallAndMountTestD rop.cmd%20%3Cfull%20path%20to%20.vhd.exe%20file%3E%0D%0A%0D%0ATo%20manually%20mount%20a%20VHD%20file %3A%0D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20MountVHD.cmd%20%3Cfull%20path%20to%20VHD%20fil e%3E%0D%0A%0D%0ATo%20manually%20unmounts%20a%20VHD%20file%3A%0D%0A%20%20%20%20%20%20%20%20%20%20%20% 20%20%20%20UnMountVHD.cmd%20%3Cfull%20path%20to%20VHD%20file%3E%0D%0A"%2c"priority"%3a"-1"}]"
Jake

Toodledo Admin
Posted: Jun 21, 2012
Score: 0 Reference
What is the error that you are getting?
todo

Posted: Jun 21, 2012
Score: 0 Reference
Error code: 4
Error text: You didn't send any tasks to add
Jake

Toodledo Admin
Posted: Jun 21, 2012
Score: 0 Reference
I am guessing that it is an encoding problem. I'll bet that something inside the note is not being escaped properly which is causing it to be invalid JSON. Try removing the note and retry that query and see if it works.
todo

Posted: Jun 22, 2012
Score: 0 Reference
Thank you. You are right, I was url escaping the string before Json escaping. Thanks!
You cannot reply yet

U Back to topic home

R Post a reply

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