Skip to content

Capture and normalise exceptions that can be thrown by response.text()Β #1579

@camillecroci

Description

@camillecroci

What problem does this feature solve?

The fetch error handler is reading the body of the response it receives, first by using response.text(). However, this method has some exceptions (source) which means this can lead to errors being thrown and not being handle gracefully.

Ideal solution

Add a try/catch around this block then we could capture and normalise those as well.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

Status

πŸ— In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions