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
I have a websocket server written in node js.
I'm sending text packets from an esp32.
When the server gets a packet it immidiately throws an error:
[Socket] - Error: Invalid WebSocket frame: invalid UTF-8 sequence
May 9 01:50:37 PM at Receiver.dataMessage (/opt/render/project/src/node_modules/ws/lib/receiver.js:532:18)
May 9 01:50:37 PM at Receiver.getData (/opt/render/project/src/node_modules/ws/lib/receiver.js:459:17)
May 9 01:50:37 PM at Receiver.startLoop (/opt/render/project/src/node_modules/ws/lib/receiver.js:158:22)
May 9 01:50:37 PM at Receiver._write (/opt/render/project/src/node_modules/ws/lib/receiver.js:84:10)
May 9 01:50:37 PM at writeOrBuffer (node:internal/streams/writable:392:12)
May 9 01:50:37 PM at _write (node:internal/streams/writable:333:10)
May 9 01:50:37 PM at Writable.write (node:internal/streams/writable:337:10)
May 9 01:50:37 PM at Socket.socketOnData (/opt/render/project/src/node_modules/ws/lib/websocket.js:1278:35)
May 9 01:50:37 PM at Socket.emit (node:events:513:28)
May 9 01:50:37 PM at addChunk (node:internal/streams/readable:324:12) {
May 9 01:50:37 PM code: 'WS_ERR_INVALID_UTF8',
May 9 01:50:37 PM [Symbol(status-code)]: 1007
May 9 01:50:37 PM }
And my esp disconnects as soon as the server throws an error like this.
What could be the problem?
When i send the packet i write it to the Serial to verify its ok.
I have a websocket server written in node js.
I'm sending text packets from an esp32.
When the server gets a packet it immidiately throws an error:
And my esp disconnects as soon as the server throws an error like this.
What could be the problem?
When i send the packet i write it to the Serial to verify its ok.
webSocket.sendTXT(messageString,msgLength); Serial.printf("\n[SOCKET] - %s\n", messageString);
The text was updated successfully, but these errors were encountered: