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

Async _fetch_certs does not decode certs - TypeError Object of type bytes is not JSON serializable #1050

@lawrencealexander10

Description

@lawrencealexander10

return json.loads(json.dumps(data))

There is a bug in the code. The json.dumps returns a TypeError: Object of type bytes is not JSON serializable while data instead needs to be decoded data.decode('utf-8') before converting to dictionary.

The correct approach is being used in the id_token.py method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions