sindresorhus / ky

🌳 Tiny & elegant JavaScript HTTP client based on the Fetch API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support per-request timeouts that trigger retries

victordidenko opened this issue · comments

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?

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