Goodreads Developers discussion

44 views
bugs > add_books_to_shelves.xml

Comments Showing 1-6 of 6 (6 new)    post a comment »
dateUp arrow    newest »

message 1: by Jaime (new)

Jaime Stokes | 7 comments Hi,

I am trying to call http://www.goodreads.com/shelf/add_bo...
with parameters such as:
bookids=3121174%2C7800188%2C2980572%2C1981990&shelves=to-read

If I haven't waited a long duration of time (minutes not just seconds) since my last add to shelves, I will see a response such as:



false



40000





If I try again a few minutes later, the same exact call succeeds. Any ideas?

Thanks,
Jaime


message 2: by Ettore (new)

Ettore Pasquini did you notice a "memory" problem? i.e. does this happen only if you repeat the same request twice after a couple seconds? What if you submit 2 requests to the same api endpoint but using different params (still using a couple seconds interval between one and the other)?


message 3: by Jaime (new)

Jaime Stokes | 7 comments Hi,

I am actually using different parameters each time. I combed through the code and I don't see how it can be on the request end. I even installed a packet sniffer and from my end the request looks correct. For whatever strange reason, your end replies correctly for the first attempt (200 with the expected xml) but on the second attempt (with different but similar params) I see a 302 status code with HTML redirection for the response. Now if I restart my application so that I start off on the second book (the request that previously failed) a couple of minutes later, it now succeeds.

I noticed that there is now a separate api from the reviews. Does it have something to do with this?

Thanks,
Jaime


message 4: by Jaime (new)

Jaime Stokes | 7 comments Just for the sake of completeness, I decided to run the same exact parameters as you suggested where the only thing that changed was the oauth timestamp/signature and it behaved the same way. It worked the first time and failed on the subsequent calls.

Thanks,
Jaime


message 5: by Amir (new)

Amir | 2 comments Have you tried to renew OAuth session for each request?


message 6: by Ettore (new)

Ettore Pasquini I assume when you replay the request you also change the nonce. That will need to change per each request (along with time signature).


back to top