New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UnicodeEncodeError when opening page in web browser mode #1094
Comments
@notFloran Can you have a look ? (another encoding issue...) |
Versions Python version (~/glances-venv/bin/python -V): Operating System (lsb_release -a): Browser: GET Request:
Answer:
Log:
|
@redjoe Thanks for this complete issue report on the DEVELOP branch ! @notFloran Can you have a look, the issue is still existing after your WebUI refactoring. |
Same problem. Versions Glances v2.11.1 with psutil v5.3.0 |
Same Problem. Versions Glances v2.11.1 with psutil v5.2.2 Window 10 |
Same Problem. Versions Glances v2.11.1 with psutil v5.4.3 macOS |
Same here. Glances v2.11.1 with psutil v5.4.3 |
Same here Glances v2.7.1 with psutil v5.0.1 Installed via |
Same problem |
Same Problem. Versions Glances v3.0.rc5 with psutil v5.4.6 windows 10 |
Can not reproduce. Please can you provide (paste/bin) full log in debug mode ? |
@nicolargo Can you tell me how to enter the debug mode and where the log file is? There is a log, which is the result of
And then, I opened
OS: Debian 9.3 x64 I noticed the |
I am a little bit disappointing because the error did not come from a Glances code but by the standard wsgiref/simple_server.py script used by the Bootle lib. RFC 2616 is clear: if no encoding is declared in the Content-Type header, the encoding for text/html is assumed to be ISO-8859-1. For all listening to this issue, can you please try to execute this little python script on your environment (it will create a web server with a simple test page), click on the 3 links and paste me the result. ==> https://github.com/nicolargo/pythonarena/blob/master/encoding_thefuck/bottle_encoding.py And also run Glances (if possible latest Glances DEVELOP branch version) with the following option:
Go to the following URL: http://0.0.0.0:61208/api/2/all and paste/bin me the result, the output of the console and the log file (/tmp/glances-$USER.log). Thanks ! |
Tested both on Python2 and Python3 |
Running Simple webserver script result. For So, Glances works well in web server mode with python2 and doesn't with python3. Is that the reason of our problem?.. Run Glances with python2, open web page (works well) then stop Glances and restart with python3 — web page reconnect to server and works (nothing weird in console). |
I create environmental variable Ubuntu 16.04 |
@ALL i just push a new DEVELOP branch solving some encoding issue. Can you try ? Thanks ! |
env LANG in OS:
I try new DEVELOP with |
Added in the doc: https://github.com/nicolargo/glances/blob/develop/docs/faq.rst#faq |
Description
In windows running glances defaults to web server mode
When web page tries to load nothing shows and console outputs
Versions
Logs
The text was updated successfully, but these errors were encountered: