OpenAPITools / OpenAPITools/openapi-generator
[BUG] Description
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
Description
Can not extend typescript-fetch timeout beyond 5 minutes
openapi-generator version
7.9.0
Steps to reproduce
I can override the fetch timeout with
const abortSignal = AbortSignal.timeout(2 * 60 * 100); // 2 minutes
const data = await myGereratedController(someParam, { signal: abortSignal });
For testing I rigged my api controller to sleep for just over 5 minutes. The above override will timeout at 2 minutes.
However, if I use AbortSignal with timeout over 5 minutes, the call still aborts after exactly 5 minutes.
Related issues/PRs
I have read the following thread that indicates the support for AbortSignal, but it does not address my issue.
https://github.com/OpenAPITools/openapi-generator/issues/4851
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
Start at the typescript-fetch generator's timeout and AbortSignal handling, then reproduce the issue with a generated client and an AbortSignal timeout above five minutes as described. Done means the generated client honors the caller's longer timeout without aborting at five minutes while preserving the shorter two-minute override.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- openapi, typescript
- Domain
- api, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100