-
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
Uncatchable NetworkError 1006 #22493
Comments
Hello @mayrsascha, thanks for reporting it, we will take a look. |
Thank you @carlosmiei ! Some extra information that just came to mind:
#14086 Let me know if there is anything else I can provide, thank you! |
Hint: You are currently not seeing messages from other users and the system. |
Also having this problem. Everything works for a while and with verbose true I can see I'm using ccxt 4.2.79 and going against mexc. It happens sporadically |
Hi, I'm trying to reproduce the error but haven't been successfull so far.
@ragamufin , the error you are seeing are they also uncatchable? @mayrsascha, are you seeing uncatchable error consistently where it exits the script with the code you provided? How many symbols are you watching per exchange? |
@pcriadoperez In my case I was able to narrow down the errors to Ever since I've surrounded it with a I've noticed that if some other part of the code takes up the thread with heavy processing such as writing a lot of data to local storage then errors can happen with the websocket connection. So I wonder if using a worker to run the |
@pcriadoperez Sorry just got to reply to your message now. Here a few key points in relation to your comment:
Please let me know if there is anything else I can provide! |
Hi @mayrsascha, To try and dial down the error I ran a script for a couple of hours watching all 1100 symbols of bitget OHLCV including the symbols you mentioned. Unfortunately I still was not able to reproduce the error. Also I would try to add more ram to the machine or reduce the max space size option of node so there is no mismatch there. In use cases like this with a lot of connections to several servers I have seen the ram usage can go up, so I would also double check there is not an issue there. I've left a script running in the background to see if I can see the error be reproduce |
Operating System
MacOS Sonoma
Programming Languages
JavaScript
CCXT Version
4.3.22
Description
I'm trying to get OHLCs for 100s of coins, please see code below on how I'm achieving that.
Despite wrapping all network calls in a
try/catch
I'm still getting frequent uncaughtNetworkError
s, like this one:Is there another way to handle these?
Also candles seem to take a while to get in, am I doing this right or are the many infinite loops blocking data fetching in your experience?
Code
The text was updated successfully, but these errors were encountered: