Post

1 follower Follow
0
Avatar

Podio bad request error in Google chrome

I 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-

Ajmal v Hassainar Answered

Please sign in to leave a comment.

3 comments

0
Avatar

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)

Ajmal v Hassainar 0 votes
0
Avatar

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.

Andreas Haugstrup Pedersen 0 votes