Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support per-request timeouts that trigger retries #546

Open
victordidenko opened this issue Nov 20, 2023 · 1 comment
Open

Support per-request timeouts that trigger retries #546

victordidenko opened this issue Nov 20, 2023 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@victordidenko
Copy link

Section https://github.com/sindresorhus/ky#retry states that

Retries are not triggered following a timeout.

What if I want a retry on timeout? How is it possible to achieve?

@sindresorhus
Copy link
Owner

You could check for TimeoutError and do another request. No other way currently.

@sholladay sholladay changed the title Retries on timeout Support per-request timeouts that trigger retries Jun 25, 2024
@sholladay sholladay added enhancement New feature or request help wanted Extra attention is needed labels Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants