INFURA / infura

Official Public Repository for INFURA
https://infura.io
381 stars 62 forks source link

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

Open in19farkt opened 2 years ago

in19farkt commented 2 years ago

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 commented 2 years ago

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)