-
Notifications
You must be signed in to change notification settings - Fork 24
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
TimeoutError: The operation was aborted due to timeout #39
Comments
Interesting, someone else also got the error, the error says undici, but i'm not using undici anymore |
I did some investings, could you please do the following: send me the result of Temp solution-try:
I assume it's due to some weird global overwriting cause you can see it uses pnpm? don't use pnpm to clear pnpm store cache you can use |
https://nodejs.org/en/blog/vulnerability/july-2024-security-releases stated here the internal library for fetch is undici, that could be why it's a undici error you can declare a requestTimoutMS option per node option which will add a AbortSignal.Timeout to the fetch request, so the request was aborted due to a timeout error appears either earlier or later. The error indicates it tried to do a request and couldn't get a result after X ms. |
You are right Versions prior to 2.2.0 also resulted in intermittent 'connection timeout' errors. “Connection timed out” errors can be caused by Internet conditions or temporary server issues. I didn't check properly. thank you for your help :) |
Just an addition: |
Node Version: 20.10.0 I've added
|
This means the request took longer than 3000ms |
Should I put a bigger value? Bec also in prod I recive a spam of theese errors |
An error occurs intermittently after upgrading to version 2.2.0.
It seems that an error occurred because of the photo below.
My node version: v20.15.0
If you downgrade to version 2.1.7, the error will not occur.
Thank you for creating the library
(It may be awkward because we used Google Translator)
The text was updated successfully, but these errors were encountered: