Preventing retries from 404 errors? #492
-
I've created a global ky file for my app so that we can define default config options easily. I'm calling I'm testing errors and have intentionally typed an invalid url which errors with a 404. I don't want the library to retry if it receives a 404 but it tries several times before throwing a final error What can I do to prevent it from re-trying 404s? I tried setting the export default ky.create({
retry: 1
}) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Ky does not retry on 404, so this may be the native Fetch doing the retry. Related: #233 |
Beta Was this translation helpful? Give feedback.
Ky does not retry on 404, so this may be the native Fetch doing the retry. Related: #233