pclipse / beammp-webgui

BeamMP Server Manager WebGUI
0 stars 1 forks source link

UnicodeDecodeError #1

Closed Marlon5775 closed 2 months ago

Marlon5775 commented 2 months ago

I installed BeamMP-WegGUI and i got these errors

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd6 in position 138: invalid continuation byte

Traceback (most recent call last): File "C:\Users\Marlon Gamer\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\flask\app.py", line 1498, in call return self.wsgi_app(environ, start_response) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Marlon Gamer\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\flask\app.py", line 1476, in wsgi_app response = self.handle_exception(e) ^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Marlon Gamer\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\flask\app.py", line 1473, in wsgi_app response = self.full_dispatch_request() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Marlon Gamer\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\flask\app.py", line 882, in full_dispatch_request rv = self.handle_user_exception(e) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Marlon Gamer\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\flask\app.py", line 880, in full_dispatch_request rv = self.dispatch_request() ^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Marlon Gamer\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\flask\app.py", line 865, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(*view_args) # type: ignore[no-any-return] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Marlon Gamer\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\flask_login\utils.py", line 290, in decorated_view return current_app.ensure_sync(func)(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\BeamMP\app.py", line 154, in index config = toml.load(CONFIG_FILE) ^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Marlon Gamer\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\toml\decoder.py", line 134, in load return loads(ffile.read(), _dict, decoder) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 322, in decode UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd6 in position 138: invalid continuation byte

grafik

pclipse commented 2 months ago

The UnicodeDecodeError typically occurs when there is an issue with reading a file that contains characters not encoded in UTF-8. This error often arises when dealing with configuration files like TOML, which might contain special characters.

Check the Encoding of ServerConfig.toml: Ensure that ServerConfig.toml is saved with UTF-8 encoding. You can use a text editor like Notepad++ to check and convert the file encoding to UTF-8.

pclipse commented 2 months ago

My bad didn't mean to close it. Check comment above ^

Marlon5775 commented 2 months ago

I just completely reinstalled the Server+GUI and now it works but still thanks for the effort.

Marlon5775 commented 2 months ago

But i still have an question. Is there a way that i can see the terminal outputs in the webgui?

pclipse commented 2 months ago

There probably is a way, but I'd need to recreate or edit the GUI for it to have the. I don't mind looking into it though

On Fri, Jun 21, 2024, 10:31 Marlon5775 @.***> wrote:

But i still have an question. Is there a way that i can see the terminal outputs in the webgui?

— Reply to this email directly, view it on GitHub https://github.com/pclipse/beammp-webgui/issues/1#issuecomment-2183070639, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6WJ7MJ36PW4VFMCSJ2PJODZIRIOFAVCNFSM6AAAAABJWHO6PKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBTGA3TANRTHE . You are receiving this because you modified the open/close state.Message ID: @.***>