Skip to content
This repository was archived by the owner on Feb 28, 2026. It is now read-only.
This repository was archived by the owner on Feb 28, 2026. It is now read-only.

Error in JSON response with UTF-8 BOM #144

@eduardomourar

Description

@eduardomourar

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions