Error with WebSockets and UTF-8 encodings
See original GitHub issueIf within an instance you write curl www.google.com
you’ll see that the javascript console shows: WebSocket connection to 'ws://play-with-docker.com/sessions/952dc23e-c830-40e2-ba0d-35ec548d0127/instances/goofy_keller/attach' failed: Could not decode a text frame as UTF-8.
and terminal stops working
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
WebSockets and text encoding - Stack Overflow
I read: The WebSocket API accepts a DOMString object, which is encoded as UTF-8 on the wire, or one of ArrayBuffer, ArrayBufferView, or...
Read more >WebSocket headers encoding problem · Issue #968 - GitHub
Parsing an HTTP message as a stream of Unicode characters, without regard for the specific encoding, creates security vulnerabilities due to the ...
Read more >RFC 6455: The WebSocket Protocol
Fail the WebSocket Connection . ... Handling Errors in UTF-8-Encoded Data . ... _ASCII_ shall mean the character-encoding scheme defined in [ANSI.
Read more >Accept-Encoding - HTTP - MDN Web Docs
The Accept-Encoding request HTTP header indicates the content encoding (usually a compression algorithm) that the client can understand.
Read more >How to handle non-UTF8? - Google Groups
If a connection receives invalid UTF8 data in a text message it will be closed with an invalid payload error (websocket close code...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I think we could go with Socket.io - @alexellis also had an issue connecting to WebSockets over a proxy. I might jump into this sometime during the week 🎉
Related to this is that maybe we should switch to socket.io. It has lots of fallbacks and seems to sve all these crazy issues.
On Mon, Oct 10, 2016, 20:04 Marcos Nils notifications@github.com wrote: