Podio bad request error in Google chrome
AnsweredI am tryintg to make a custom view of all tasks using getTasks() API in phpclient.
https://developers.podio.com/doc/tasks/get-tasks-77949
I have done the auth using the server side flow and successfully executed getTasks() with four parameters as shown below..
$tasks = $api->task->getTasks(array('limit' => $pageSize,'offset' => 0,'grouping' => "responsible",'completed' => "false"));
it works perfect in all the browsers except Google Chrome.. Google chrome shows following error
Fatal error: Uncaught exception 'PodioBadRequestError' in C:\wamp\www\FoxIntegration\PodioAPI\PodioAPI.php on line 241
Any help ?
-Ajmal vh-
-
Hi Ajmal
Can you print out the error details as described in the "Error handling" paragraph for the PHP client: https://developers.podio.com/clients/php
Then post the error message here so we can see the underlying reason.
Christian
-
When i prined the error as specified in Error handling" paragraph for the PHP it is as shown below:
Array400/task/?limit=100&offset=0&grouping=responsible&completed=false?limit=100&offset=0&grouping=responsible&completed=false
Invalid value [u'0', u'0']: Must be an integer (at offset)
-
Hi Ajmal,
I'm sorry, I didn't see your response until now. For a while there was a bug in the PHP client library where a GET request with query parameters would fail if the access token had to be refreshed in the same call.
I fixed that issue on June 21, but if your download of the client library predates that it would explain your problem. If you are still having the problem grab a fresh copy of the PHP client library from https://github.com/podio/podio-php
That will fix your issue.
Please sign in to leave a comment.
Comments
3 comments