OpenAPITools / OpenAPITools/openapi-generator

[Question] [typescript-fetch] How you handle timeout network request ?

Open
#4,964 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Client: TypeScript
Dominant language
Java
Stars
26.8k
Forks
7.7k
PR merge metrics
PR metrics pending

Description

Hi,

How guys do you handle network request timeout with typescript-fetch generator ? Fetch doesn't support request timeout configuration and you run into issues like requests waiting infinitely ...
As I don't create directly the fetch queries (SwaggeCodeGen generates all boilerplate code), how to handle that important case ?

Thanks for your responses.

Sami

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names the typescript-fetch generator and Fetch, but no repository file or test. Start by locating the typescript-fetch generator and its generated request path, then determine how timeout behavior should be specified and verified. Done means an agreed timeout approach is documented or implemented with coverage.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.