rails icon indicating copy to clipboard operation
rails copied to clipboard

JSON::ParserError

Open rockwellll opened this issue 11 months ago • 0 comments

We're using this library and when the IPInfo API returns a 503 response, the handler for IPInfo raises an error because the return from the API is not a JSON, but rather a String which states the following,

unexpected token at 'upstream connect error or disconnect/reset before headers. reset reason: connection timeout' (JSON::ParserError)

I have looked at the code and it seems the ipinfo-rails gem relies on the ipinfo Ruby gem version 1.0.1. But the latest version of the IPInfo ruby gem is 2.2.1.

Any idea why we're keeping the Ruby gem's dependency so low?

Thanks for your answer.

rockwellll avatar Mar 18 '24 21:03 rockwellll