You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When passing a Request() object to fetch-retry, retries fail with:
node:internal/deps/undici/undici:9658
throw new TypeError("unusable");
^
TypeError: unusable
at _Request.clone (node:internal/deps/undici/undici:9658:17)
at wrappedFetch (/tmp/node_modules/fetch-retry/index.js:69:21)
at Timeout._onTimeout (/tmp/node_modules/fetch-retry/index.js:127:11)
at listOnTimeout (node:internal/timers:594:17)
at process.processTimers (node:internal/timers:529:7)
To reproduce, run the following commands, which uses docker to run the test on different versions of node. The 2.7 one should run fine, the 2.8 should fail with the above error:
When passing a
Request()
object to fetch-retry, retries fail with:This issue appears in node 2.8.0 that includes undici v6.19.8, which includes this PR which is likely related.
To reproduce, run the following commands, which uses docker to run the test on different versions of node. The 2.7 one should run fine, the 2.8 should fail with the above error:
test.mjs
When running locally, here is what I get:
The text was updated successfully, but these errors were encountered: