-
Notifications
You must be signed in to change notification settings - Fork 117
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
subscribeBlocks & subscribeMempool Not Working #2146
Comments
Did you try the code in the referenced issue?
Originally posted by @zone117x in #1885 Also, please follow these socket-io debugging instructions and include the error debug logs: |
Thank you. I will try that. |
I changed the code. (8.2.2 latest version)
I got error
|
This problem should be re-assigned on API Board |
I found a bug in the subscription reconnect logic: client.socket.on('connect_error', error => {
console.error('Socket connection was denied by the server', error);
// > Socket connection was denied by the server Error: Invalid topic:
}); I'm opening a PR with a fix for that. However, I'm not able to reproduce the timeout related error log you're reporting. |
Maybe try running it for more than a day without reconnection. |
Is the client able to reconnect? How long does it take? Were you able to try these troubleshooting steps to narrow down the disconnect reason? https://socket.io/docs/v4/troubleshooting-connection-issues/#problem-the-socket-gets-disconnected |
I will try that |
disconnect Reason: transport close |
When running the reconnecting, it doen't work consistantly. Attempting to reconnect... |
Hi! dev teams.
I am making code with your api.
Here is my computer info.
Mac OS Sonoma14.4
Node 18.19.1
NPM 10.2.4
API version: 8.2.0
Here is the typescript code
After about 6 hours, the websocket stops.
I also see the this report.
#1885
The admin said it was resolved on above link, but it seems the issue has resurfaced with the Nakamoto update.
The text was updated successfully, but these errors were encountered: