gruzilla / phpinstagram

a php library for the v1 instagram api
35 stars 9 forks source link

Error 404 #1

Open sglessard opened 13 years ago

sglessard commented 13 years ago

Instagram returns me « ERROR: HTTP-Code: 404 » for 3-4 days when requesting the API.

Any idea what's going on (API down)?

-- Edit http://www.instagram.com/developer

gruzilla commented 13 years ago

hey!

albeit your edit:

i'm not 100% sure, but as i just used instagram on my iphone, i dont think the api is down. i think, there are two reasons for instagram to return 404: 1) your access token has expired. if you log in right before sending your request, or you even get 404 on trying to log in, then it might be: 2) instagram changed the api, and deprecated old ways of accessing it.

right now i have no time to check whats really going on.. in fact by now (the time i've written this code, the instagram api was proprietary) there are other ways to connect your homepage or whatever you want with instagram. just 2 things: .) instagram opened their api, a convenient way to explore it is using apigee: https://apigee.com/console/instagram .) there are cool single-function-apps around the net, one i appreciate is ifttt: http://ifttt.com/ - you can make things happen when you post something to instagram using this application

i hope this helps you for now. tell me for which url exactly you get the 404 and what requests to the api you sent before getting it and maybe i find time to check whats the problem behind it at the weekend..

sglessard commented 13 years ago

Thanks for your reply.

I don't think it's the access token since phpinstagram does not use OAuth (does it?) Maybe simple authentification (user/passwd) doesn't work anymore.

Trace :

exception 'Instagram_CommunicationException' with message 'HTTP-Code: 404' in /path/to/website/Instagram/Core/Client.php:6
Stack trace:
#0 /path/to/website/Instagram/Core/Command/Login.php(34): Instagram_Client->request('POST')
#1 /path/to/website/Instagram/Instagram.php(70): Instagram_Command_Login->exec()
#2 /path/to/website/wp-content/themes/2009/functions.php(179): Instagram->run()
sglessard commented 12 years ago

Well, haven't done anything and it's back to normal. Guess it was the API acting weird, I will look forward to use OAuth (someday)