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: Could not decode a text frame as UTF-8 (chrome)

See original GitHub issue

Hi,

I have an application hosted on shinyproxy that works well, however, sometimes the error below appears on the browser console (chrome) and the page goes offline (gray).

image

I tried to insert this command line in the global.R file of my shiny application, but the error persists.

Sys.setlocale(category = "LC_ALL", locale = "en_US.UTF-8")

Also, in the application’s Dockerfile file, I changed the LC_ALL, but it didn’t help.

RUN apt-get install -y locales
RUN locale-gen "en_US.UTF-8"
RUN update-locale "LC_ALL=en_US.UTF-8" "LANG=en_US.UTF-8"
RUN cat /etc/default/locale

Has anyone encountered this type of error?

Thank you so much.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
stlacommented, Oct 4, 2021

Solved by upgrading ShinyProxy.

0reactions
stlacommented, Sep 29, 2021

I also experience the crash with FireFox, but with a different error message:

The connection to ws://10.41.141.10:8080/endpoint/9a5cc4c8-d4d0-4cd0-8fac-6f989e3b5060/websocket/ was interrupted while the page was loading.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix the "Could not decode a text frame as UTF-8." bug
Sometimes Google Chrome throw a Could not decode a text frame as UTF-8 error. It happens when the server send invalid unicode characters...
Read more >
How to fix ''Could not decode a text frame as UTF-8." when ...
I have a front-end that uses STOMP with websockets and RabbitMQ to send requests to a microservice.
Read more >
Error: Could Not Decode a Text Frame As Utf-8 Websocket
Most of the people face the error of "Could Not Decode a Text Frame As Utf-8" in an earlier stage of learning WebSocket...
Read more >
Failed: Could not decode a text frame as UTF-8.
I've tried using Chrome Version 107.0.5304.121 and Firefox 107 on Windows 11. I have tried turning off my anti-virus software and firewall to...
Read more >
Javascript – Chrome says “Could not decode a text frame as UTF-8 ...
Javascript – Chrome says “Could not decode a text frame as UTF-8” when receiving from ... n'); }, 2000); }; ws.onerror = function()...
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