Skip to content

Wrap JSON.parse() SyntaxError with FetchError #293

@bitinn

Description

@bitinn

Just as a reminder.

I did this in 1.7.0 release when backporting the 204 no-content commit from 2.x (which revert behaviour of .json() to throw when facing an empty response).

Per our standard, this error is wrapped as FetchError, providing the offending url for troubleshooting.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions