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
setTimeout(() => {
if (this.ws) {
this.ws.send(this.writeBuffer!);
} else {
// Handle the case where the websocket is closed
console.warn('WebSocket is closed before write could occur');
}
this.writeBuffer = undefined;
}, 0);
The text was updated successfully, but these errors were encountered:
Steps to reproduce
Expected result
The connection should close gracefully, even if no data is sent over the WebSocket.
Actual result
The following error is thrown:
Uncaught TypeError: Cannot read properties of null (reading 'send')
It happens when the WebSocket connection is closed before buffered data can be sent.
Environment
Logs, links
Relevant error log:
Code snippet where the issue occurs:
serverless/shims/net/index.ts
Line 504 in da779b2
Potential Fix
The text was updated successfully, but these errors were encountered: