question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error with WebSockets and UTF-8 encodings

See original GitHub issue

If 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:closed
  • Created 7 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
akalipetiscommented, Oct 11, 2016

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 🎉

1reaction
xetorthiocommented, Oct 11, 2016

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:

If 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

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/franela/play-with-docker/issues/10, or mute the thread https://github.com/notifications/unsubscribe-auth/AAIhp72_I5K_GyfY0tT1Pd3AlylIwzx1ks5qysRkgaJpZM4KTE9T .

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found