What's happening? I get for every API call 404
posted to #Qaiku-api 11.08.2009 (en)
What's happening? I get for every API call 404
jarkko posted to #Qaiku-api 11.08.2009 (en)
you have to get the call exactly right, otherwise you get a 404. There's something wrong with the error handling, at least that was the issue when I was trying to work with it.
You can look at my PHP code if you want to see a working call, it shows quite simply what should be in the GET and POST parts of the request.
http://github.com/dsample/pingmicro/t...
dsample commented on posted to #Qaiku-api Tampere, Finland 11.08.2009 (en)
?? Have those api calls worked before or.. ? Anyway, sounds strange, pinging @tepheikk and @bergie .
Unfortunately the latter is on a roadtrip, but we'll try to find out what's going on tomorrow.
eholmila commented on posted to #Qaiku-api 11.08.2009 (en)
okay, thanks @dsample for the fast reply :) i'll on my part try to put some pressure on that we'll get the error handling work better asap :/
eholmila commented on posted to #Qaiku-api 11.08.2009 (en)
Here's the original discussion:
http://www.qaiku.com/channels/show/Qa...
"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
dsample commented on posted to #Qaiku-api Tampere, Finland 11.08.2009 (en)
ah, this was this case, thanks for reminding. if my memory doesnt fail me we did some investigations but weren't quite able to put our finger on the bug in that given time window, so i think this is still a open ticket in trac. We'll look more tomorrow.
eholmila commented on posted to #Qaiku-api 11.08.2009 (en)
@jarkko can you send me via email the details of the API call you were making. My address is tero.heikkinen (that at mark) rohea.com
I look into it tomorrow and try to find the place where the 404 exception is coming. We should only throw them when object is not found or if there is no suitable URL route in API - component
tepheikk commented on posted to #Qaiku-api 11.08.2009 (en)
@tepheikk You can check out http://github.com/jarkkos/kieku/tree/... the file is MessageLoader.cpp and API calls are defined as constants there. My current local working version is bit different but I reverted to the latest version there and had the same result. I will double check anyhow and reply to this thread.
jarkko commented on posted to #Qaiku-api 11.08.2009 (en)
@jarkko, atm we think this might have something to do with the feed items, but we still have to digg a bit deeper. We'll keep you posted.
eholmila commented on posted to #Qaiku-api 14.08.2009 (en)
@jarkko does the problem still prevail? I've fixed some issues that might help with the 404 error. If the problem still exists could you send me the JSON file you got from the API and the guid that gives you 404?
tepheikk commented on posted to #Qaiku-api 18.08.2009 (en)
@tepheikk works now except for sending I get http 500
jarkko commented on posted to #Qaiku-api 26.08.2009 (en)
Ok, works now:
http://github.com/jarkkos/kieku/commi...
jarkko commented on posted to #Qaiku-api 30.08.2009 (en)
Copyright Rohea Oy 2010 | Mobile version | Feedback | API | Terms of Service | Applications and tools