Error: Could not decode a text frame as UTF-8
Hello everyone,
I am using Repetier Server 1.1.0 Pro (Trial) on an RPi 3B+, language is English.
Upon first install it works ok for some time, but then the web interface becomes unusable. It constantly says "Connection lost, reconnecting" and if I look at the Dev tools I can see:
WebSocket connection to 'ws://192.168.0.6/socket/?lang=en&sess=Z6DUYzJM1j2dd1%23*7JHcroA%25!Gd*%23V%262' failed: Could not decode a text frame as UTF-8.
The printers are ok and SSH is ok. Restarting does not help. This is not due to some weird language text or names, it just randomly happens. I reinstalled, and it happened again randomly after a while. The touch UI is fine, though. The only solution is to reinstall.
Please provide a remedy, this is not hardware related as I tried another Raspberry Pi and some issue.
I am using Repetier Server 1.1.0 Pro (Trial) on an RPi 3B+, language is English.
Upon first install it works ok for some time, but then the web interface becomes unusable. It constantly says "Connection lost, reconnecting" and if I look at the Dev tools I can see:
WebSocket connection to 'ws://192.168.0.6/socket/?lang=en&sess=Z6DUYzJM1j2dd1%23*7JHcroA%25!Gd*%23V%262' failed: Could not decode a text frame as UTF-8.
The printers are ok and SSH is ok. Restarting does not help. This is not due to some weird language text or names, it just randomly happens. I reinstalled, and it happened again randomly after a while. The touch UI is fine, though. The only solution is to reinstall.
Please provide a remedy, this is not hardware related as I tried another Raspberry Pi and some issue.
Comments
As a test you can login vie ssh and rename your printer data
sudo -i
cd /var/lib/Repetier-Server/printer
mv <yourprinterslugname> <yourprinterslugname>_tmp
service RepetierServer restart
When it then starts to work it comes from one of the printer files in that folder.
You can rename folder back and go deeper to see what file it could be causing it.
What also could help is checking websocket that was aborted and see the last frames. See which actions are open so we know one of the open actions - most likely the next one in order to be answered is causing it.
Another thing I noticed - I accidentally selected a .stl file and not the .gcode (dumb mistake, both were side by side) and doing so attempts to start the print but produces tons of printer errors, it might be a good idea to add a check to the web interface to stop "printing" .stl files via direct print.
Will check what I can do with the stl check. But that is not easy I fear. At least if it should work with all kind of wrong files.