eclipsesource / eclipsesource/tabris-js

Enable reliable fetch() timeout handling

Open
#1,843 0 comments 0 reactions 0 assignees View on GitHub
api
Dominant language
JavaScript
Stars
1.4k
Forks
171
PR merge metrics
No merged PRs in 30d

Description

### Problem description

Currently, `fetch()` will reject with a `TypeError` with the message `Network request timed out`. The only way to detect this error kind is matching its message, which might unexpectedly change in the future.

### Expected behavior

Errors thrown on timeout should have a distinct type (e.g. `TimeoutError`) to enable reliable error handling.

### Environment

Tabris.js version: 3.x

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.