OpenAPITools / OpenAPITools/openapi-generator
[Question] [typescript-fetch] How you handle timeout network request ?
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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