-
Notifications
You must be signed in to change notification settings - Fork 7
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
Frequent timeout errors with Node 20 #220
Comments
Same for me. Is it linked to the "timeout" option (L471)? js-kubo-rpc-client/src/index.ts Lines 466 to 476 in 5c7e42e
The absence of documentation does not help 😕 (related to #113) |
I've tested on Node 20, 18, and 16. 16 Doesn't have this issue, so I guess it's a compatibility problem between kubo-rpc-client and native fetch in node 18+ |
I'm having another problem. When I set a timeout for an operation, it's not set as I need. js-kubo-rpc-client/src/lib/http.ts Lines 133 to 135 in 5c7e42e
It seems that if I pass a numeric value for the timeout, it will never be applied and will always be 10000. kubo-rpc-client 5.0.2 |
Hey y'all. We've used this library with different NodeJS versions, and on the 20 LTS version, kubo-rpc-client throws timeout errors frequently whenever an RPC function is called. You don't have to call a specific function, it throws randomly.
An example code to produce:
Randomly you'd get a timeout error that looks like this
Kubo: 0.24.0
kubo-rpc-client: 3.0.4
NodeJS: v20.11.1
The text was updated successfully, but these errors were encountered: