OpenAPITools / openapi-generator

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
https://openapi-generator.tech
Apache License 2.0
21.33k stars 6.46k forks source link

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

Open dngconsulting opened 4 years ago

dngconsulting commented 4 years ago

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

auto-labeler[bot] commented 4 years ago

👍 Thanks for opening this issue! 🏷 I have applied any labels matching special text in your issue.

The team will review the labels and make any necessary changes.

Linus-Boehm commented 4 years ago

See https://github.com/OpenAPITools/openapi-generator/issues/4851