Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in JSON response with UTF-8 BOM #144

Closed
eduardomourar opened this issue Jan 31, 2019 · 0 comments
Closed

Error in JSON response with UTF-8 BOM #144

eduardomourar opened this issue Jan 31, 2019 · 0 comments

Comments

@eduardomourar
Copy link
Contributor

eduardomourar commented Jan 31, 2019

Whenever I receive a response from Microsoft Parter Center, the deserialization code throws the following error:

Exception: DeserializationError: JSON is invalid: Unexpected UTF-8 BOM (decode using utf-8-sig)

It happens when it runs json.loads() with a string that has BOM. I will try to create a PR to fix it.

This is related to this issue in the requests library: psf/requests#2296

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant