Skip to content
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

WebSockets drop connection when we trying to call eth_getBlockByNumber from iOS 15 (any browser) #216

Open
in19farkt opened this issue Oct 18, 2021 · 1 comment

Comments

@in19farkt
Copy link

in19farkt commented Oct 18, 2021

What causes: the Infura closes WebSocket connection when we trying to call RPC method eth_getBlockByNumber in the Ethereum mainnet (Rinkeby working fine). Infura sends opcode 8, the browser closes the connection, an automatic reconnect is triggered, but due to the fact that some requests from the previous connection remained unanswered, the PendingRequestOnReconnectingError occurs (we are using Web3 and web3-providers-ws with auto-reconnect option).

The error is present only on iOS 15 and does not occur if replace Infura with another free Ethereum node (tested using wss://main-light.eth.linkpool.io/ws) or if use another version of iOS.

@gavar
Copy link

gavar commented Nov 29, 2021

We have exactly the same issue, cannot say what's the issue as my inspect.dev just refused to connect anymore. It does not work on iOS 15+ versions, other devices works fine, the only record I have left from the last debugging:

WebSocket connection  The operation couldn’t be completed. (kNWErrorDomainPOSIX error 100 - Protocol error)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants