Closed ianlin0126 closed 11 years ago
from what i can see you are using ruby 2.0.0. are you also using HTTPClient? than this might bite you: https://github.com/nahi/httpclient/issues/153
as a workaround i can recommend switching to CURB
i did that with the example-project on heroku: http://asin.herokuapp.com/
Thanks phoet! The ruby version is the exact reason of the discrepancy, your example project with CURB fixes the problem :)
I found that the search function for some queries frequently returns REXML::ParseException error. The issue is especially severe on Heroku Cedar stack (for unknown reason). And it only happens for some queries. I'm suspecting that there are some issues with parsing the XML response.
The following is my code:
And the following is the error I'm seeing. It rarely fails on my local machine, but it shows up frequently on heroku:
An example where this issue doesn't occur is with a slightly different query