You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With Alchemy SDK v3.6.5 we are seeing intermittent uncaught exceptions during WebSocket reconnections. The error originates inside the SDK and is not related to application code or ethers.
Error:
TypeError: Cannot read properties of undefined (reading 'subscription')
During reconnection, a message can arrive before subscriptions are fully re-established. In that case message.params is undefined, but handleMessage accesses it without validation, causing an uncaught exception.
How to reproduce
Use Alchemy SDK v3.6.5 with WebSocket subscriptions.
Let the WebSocket disconnect and auto-reconnect.
A message is received during the reconnection window.
handleMessage runs and throws the error above.
This is intermittent and timing-related, but reproducible under network instability.
Relevant code or sample repro
No minimal repro available. Observed in production.
[REQUIRED] Environment
[REQUIRED] Describe the problem
With Alchemy SDK v3.6.5 we are seeing intermittent uncaught exceptions during WebSocket reconnections. The error originates inside the SDK and is not related to application code or ethers.
Error:
Failing location:
Failing line:
During reconnection, a message can arrive before subscriptions are fully re-established. In that case
message.paramsis undefined, buthandleMessageaccesses it without validation, causing an uncaught exception.How to reproduce
handleMessageruns and throws the error above.This is intermittent and timing-related, but reproducible under network instability.
Relevant code or sample repro
No minimal repro available. Observed in production.
Suggested defensive fix:
This would prevent crashes when out-of-order or malformed messages arrive during reconnection.