Podio-php API on GAE (using a curl emulator)
AnsweredHi!
I'm on a project which needs podio implementation on GAE. php is the must-use language so I have no better choice than using a curl emulator by Matthijn Dijkstra here https://gist.github.com/Matthijn/8243747 . It works great locally on the GAE sdk, but when it comes live, I always get some headers error. I suspect it's going through SSL on live on GAE but I'm not sure.
After adding some SSL handler in the emulator code, I face this issue :
Notice: Undefined index: body in /base/data/home/apps/s~wt-project1/9.374020492917717658/static/lib/PodioError.php on line 23 Fatal error: Uncaught PodioNotFoundError: "No matching operation could be found. The path '/oauth/token' was not found.." Request URL: http://api.podio.com/oauth/token Request Body: null Stack Trace: #0 /base/data/home/apps/s~wt-project1/9.374020492917717658/static/lib/Podio.php(84): Podio::request('POST', '/oauth/token', Array, Array) #1 /base/data/home/apps/s~wt-project1/9.374020492917717658/static/index.php(7): Podio::authenticate('app', Array) #2 {main} thrown in /base/data/home/apps/s~wt-project1/9.374020492917717658/static/lib/Podio.php on line 253
What does it mean at all and what's going on on GAE?
Thank you!
Best Regards.
-
You can get rid of the undefined index error by pulling a fresh copy of podio-php. That issue was fixed here: https://github.com/podio/podio-php/commit/9df6b1568cd1b7133fd530ee7da35537e0635842
I'm afraid I can't be of any help when it comes to GAE as I have no experience with that specific environment
-
Thank you for your reply Andreas, I pulled the new copy of the php client and no more undefined index error! :) But I ended up with this one:
"https://api.podio.com:443/oauth/token" Fatal error: Uncaught PodioNotFoundError: "No matching operation could be found. The path '/oauth/token' was not found.." Request URL: http://api.podio.com/oauth/token Stack Trace: #0 /base/data/home/apps/s~wt-project1/9.374154148435079112/static/lib/Podio.php(95): Podio::request('POST', '/oauth/token', Array, Array) #1 /base/data/home/apps/s~wt-project1/9.374154148435079112/static/index.php(7): Podio::authenticate('app', Array) #2 {main} thrown in /base/data/home/apps/s~wt-project1/9.374154148435079112/static/lib/Podio.php on line 265
Any thoughts on it?
-
You're making a request to http://api.podio.com/ -- all communication with our API must be encrypted so you have to use https.
-
I'm trying to get an answer from the oauth address, but when I call to:
I get an error:
"error_description": "No matching operation could be found. The path '\/oauth\/token' was not found..",
$username is my email
$password is my password
MY_APP_ID is the users app id
MY_APP_SECRET is the users app secret
But even when I do not use a body in the request of https://podio.com/oauth/token I get as an answer that The path '\/oauth\/token' was not found.
I tried the same with https://api.podio.com/oauth/token and https://api.podio.com:443/oauth/token but same result of no '/oauth/token' path has been found...
I tried it from insomnia, also directly from the browser and from a symfony app I'm developing. Always same result.
Please sign in to leave a comment.
Comments
4 comments