-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
web3.js: after fixing issue #25133 app still can freeze #25322
Comments
You set up a ton of I counted 271 subscriptions on startup of the app. Interestingly, the devnet RPC drops the connections after it's responded to ~240–250 of them. Sounds like a magic number to me. I bet the RPC drops the connection as soon as it receives 250 subscriptions.
|
If I comment out most of the subscriptions that set up hundreds of This isn't to say I don't have work to do to make the socket connection more resilient! It means that I think both of us have work. You, to figure out another way to get the data you need without having to make hundreds of subscriptions, and me to look for bugs in the socket tracker. |
@brianlong, does this ~250 number sound plausible? Do you know of any code on api.devnet that would kick a subscriber out with a 1013 Please Try Again websocket error if they try to make 250 subscriptions? |
Ok, thanks for the response, I'm gonna look for better solution. And good luck with looking for bugs! |
More confirmation that you're getting rate limited with respect to the number of subscriptions/connection you open: https://discord.com/channels/428295358100013066/560496939779620864/978331039581745193 |
@awojciak, are you still having this problem in production? It looks like https://invariant.app is making far fewer |
@steveluscher I've forgot about that issue, hadn't stumbled upon it recently |
Problem
Copied from here: solana-labs/solana-web3.js#1177 because I didn't get any response.
App still freezes and there is a lot of these errors:
Code line indicated in error:
For me it seems like there is still some recursion retrying way too many times. Here you can check preview: invariant-labs/webapp#312 - reproduction steps are the same as earlier (Open dev tools console in browser, set network in app to devnet and for example try to swap two tokens (use faucet to get our mock tokens) - then app will freeze and console will be full of these errors).
The text was updated successfully, but these errors were encountered: