urm... is the API down? I'm just getting 404s
posted to #Qaiku-api Huntingdon, UK 27.07.2009 (en)
urm... is the API down? I'm just getting 404s
dsample posted to #Qaiku-api Huntingdon, UK 27.07.2009 (en)
ok, it seems you just get a 404 if your request isn't perfect. Not exactly intuitive for developers.
dsample commented on posted to #Qaiku-api Huntingdon, UK 28.07.2009 (en)
@dsample define "perfect", what conditions cause it?
bergie commented on posted to #Qaiku-api Helsinki, Finland 28.07.2009 (en)
well, one example, if you just want to check the end-point exists you might try going there in a browser and expect an error of some kind telling you that you need to authenticate or that some parameters are missing. For the Qaiku API it just gives a 404 error.
This is the same if you get some of the parameters wrong (my script wasn't sending the POST arguments properly), but all I could see was a 404 error, rather than being told that I hadn't provided some information (like Twitter and other services do).
dsample commented on posted to #Qaiku-api Huntingdon, UK 28.07.2009 (en)
@dsample: you'll have to show later tonight what I'm doing wrong with the thingamabob, can't make it work with ping.fm either :-(
myrtti commented on posted to #Qaiku-api 28.07.2009 (en)
and true, atleast with ping.fm I get
"user.post This API only accepts POST requests."
while qaiku just gives
"Action update not found (GET /api/statuses/update.json) Midgard CMS power since 1999. Perfect software." (irony isn't lost on me ;-D)
myrtti commented on posted to #Qaiku-api 28.07.2009 (en)
@myrtti slightly updated script from the one you have. I've got my new version working with Qaiku, Jaiku, Twitter and Identi.ca.
It won't work with Ping.fm yet, since they're a lot more strict that apps must use OAuth.
dsample commented on posted to #Qaiku-api Huntingdon, UK 28.07.2009 (en)
This is interesting as the API component does set correct HTTP status codes and messages for different situations. I suspect something in Qaiku catches my exceptions and throws them onwards as 404s instead. I'll check that when @tepheikk returns from Korea.
bergie commented on posted to #Qaiku-api Helsinki, Finland 28.07.2009 (en)
For more comprehensive checking, here is the list of potential error codes Qaiku API can send when posting to statuses/update.json:
General Midgard and authentication stuff that applies to all API:
Specific error situations related to posting updates:status not provided: Error 400 Missing status messagein_reply_to_status_id can't be found: 404 Status message X not found
bergie commented on posted to #Qaiku-api Helsinki, Finland 28.07.2009 (en)
Copyright Rohea Oy 2010 | Mobile version | Feedback | API | Terms of Service | Applications and tools