kimbach posted to #devku:

kimbach

Anyone out there that had sucess getting an OAuth request_token from the new API? All I get is HTTP error 500

8 months, 1 week ago.

19 comments so far

  • kimbach

    (I'm finding the section on errorcodes in the API docs "somewhat" less amusing now ;-))

    8 months, 1 week ago by kimbach

  • zealalot

    I'm trying to request a token as well.. Just wondering, when you send your POST request, what URL do you send it to? I tried http://jaiku.com/api/request_token with no luck.

    8 months, 1 week ago by zealalot

  • kimbach

    Yeah it's pretty much the same for me, and that is exactly the URL I'm trying to post to. Do you also get HTTP code 500?

    8 months, 1 week ago by kimbach

  • kimbach

    Seems like some work is going on http://rietku.appspot.com/14/diff/1001/17, maybe time to get the source and get involved :-)

    8 months, 1 week ago by kimbach

  • zealalot

    Nah, I just keep getting the HTML for the 'Something Broke' page. I did start a post on Groups though: http://tinyurl.com/cmnl2a

    8 months, 1 week ago by zealalot

  • kimbach

    Yes, I did a follow-up post where I reiterated my problems, I might get further than you, getting an empty response and an error 500

    8 months, 1 week ago by kimbach

  • zealalot

    Hah.. Just noticed that you're the same person I'm talking to in Google Groups ;)

    8 months, 1 week ago by zealalot

  • kimbach

    LOL, indeed, we do seem to have a similar problem, I'll post my entire code-snippet later

    8 months, 1 week ago by kimbach

  • zealalot

    Just sent an e-mail to andy@jaiku.com (Keep seeing his address in the OAuth docs) This is driving me crazy, I'm so ADD..

    8 months, 1 week ago by zealalot

  • zealalot

    Wow.. Andy actually wrote back. He says that subdomains are breaking the process. Have you tried www.jaiku.com and jaiku.com? http://tinyurl.com/ddrrbb

    8 months, 1 week ago by zealalot

  • kimbach

    nice! And I've tried both, both resulted in the error 500 - I'll do some more testing in the morning though

    8 months, 1 week ago by kimbach

  • zealalot

    I have an unrelated question. I see a lot of libraries are for python 2.6, but that the latest version (which I'm learning on) is 3.0. Is everyone just boycotting it?

    8 months, 1 week ago by zealalot

  • zealalot

    Finally got a request token! Here's the code: http://tinyurl.com/cmeywl

    8 months, 1 week ago by zealalot

  • kimbach

    Cool, thanks for sharing, I'll try again!

    8 months, 1 week ago by kimbach

  • kimbach

    I also managed to get a request token, I even managed to convert that into a token authorize URL, and it seemed like Jaiku accepted it, unfortunately it didn't show up on the list of authorized tokens. I'm looking at the #JaikuEngine source for clues

    8 months, 1 week ago by kimbach

  • kimbach

    (btw, my 500 error is from my own server, doh!, I also get the generic exception you're getting. BTW it seems wrong that we're served HTML and HTTP 200. But I don't know the OAuth best pratice on error handling)

    8 months, 1 week ago by kimbach

  • zealalot

    I know kimbach has already gotten this far, but here's the code I used to get an authorized token: http://python.pastebin.com/f1c2f00a2

    8 months, 1 week ago by zealalot

  • kimbach

    So your tokens showed up on this page http://www.jaiku.com/api/tokens ?

    8 months, 1 week ago by kimbach

  • kimbach

    ah I see, you're using the appspot.com URL, that was a strange twist, might have had better succes if I'd used that all along

    8 months, 1 week ago by kimbach

Sign in to add a comment