python icon indicating copy to clipboard operation
python copied to clipboard

JSON error on getDetails when it returns 5xx status code

Open PriOliveira opened this issue 1 year ago • 2 comments

In the getDetails method, when the response status code is 5xx, it raises an error when attempting to read a JSON.

For example, when there is a 503 and it raises ContentTypeError: Attempt to decode JSON with unexpected mimetype: text/plain.

PriOliveira avatar Jul 17 '24 06:07 PriOliveira

@abdullahdevrel @max-ipinfo Since the PR was merged, when do you think we could have a new version including the fix?

PriOliveira avatar Aug 05 '24 15:08 PriOliveira

@abdullahdevrel @max-ipinfo Since the PR was merged, when do you think we could have a new version including the fix?

We are planning to release a version as soon as possible. We will let you know in this thread when it is ready.

Thank you for your understanding.

max-ipinfo avatar Aug 06 '24 17:08 max-ipinfo

@PriOliveira I now have maintainer access to our PyPi repository. I am hoping to push a new version with your change this week.

I will send you an update as soon as it's published. Thank you for your patience.

max-ipinfo avatar Aug 29 '24 05:08 max-ipinfo

Published the latest version of the code as v5.1.0: https://pypi.org/project/ipinfo/5.1.0/

max-ipinfo avatar Aug 30 '24 21:08 max-ipinfo