OpenAPITools / OpenAPITools/openapi-generator

[BUG] Description

Open
#22,059 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue: Bug
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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.