Internal Server Error...
Hi All, first time posting.
I just updated to the latest V2025.01.16.1518 but I also saw it in the previous version.
BTW, thanks for this latest update, as it helps a lot when I'm assigning the channels due to the new search function when selected the Parent Station field.
Anyway, here is my issue. I am assigning my channels, and I then save them. I do about 10 at a time.
After it saves, then I click the button to Update the m3u and xml.
It works (spins) for a bit and then it gives me the internal server error.
I'm not sure if it actually crashes, as I just reload the main web page and I'm back up and running.
None of the container logs shows there was an issue, only the screen and the log in SLM (via Controls, Logs).
Below is a part of the SLM log that's of interest.
Note that the only time I get the error is when I try and Update the m3u.
Also note that it does indeed gives me a new m3u as when I load it in VLC, I actually see the increase in the number of channels I had added/assigned.
**************Start of log portion **************
[INFO | 2025-01-16 15:25:00,371] - 10.89.2.16 - - [16/Jan/2025 15:25:00] "e[36mGET /static/assets/js/core/bootstrap.min.js HTTP/1.1e[0m" 304 -
[INFO | 2025-01-16 15:25:00,392] - 10.89.2.16 - - [16/Jan/2025 15:25:00] "e[36mGET /static/assets/js/plugins/smooth-scrollbar.min.js HTTP/1.1e[0m" 304 -
[INFO | 2025-01-16 15:25:00,422] - 10.89.2.16 - - [16/Jan/2025 15:25:00] "e[36mGET /static/assets/js/material-dashboard.min.js?v=3.0.0 HTTP/1.1e[0m" 304 -
[INFO | 2025-01-16 15:25:00,499] - 10.89.2.16 - - [16/Jan/2025 15:25:00] "e[36mGET /static/assets/img/slm_flavicon.png HTTP/1.1e[0m" 304 -
Deleted: plm_epg_hls_m3u_01.m3u
Created: plm_epg_hls_m3u_01.m3u
[DEBUG | 2025-01-16 15:25:09,869] - Starting new HTTPS connection (1): bit.ly:443
[DEBUG | 2025-01-16 15:25:10,153] - https://bit.ly:443 "GET /moj-epg-gz HTTP/1.1" 301 128
[DEBUG | 2025-01-16 15:25:10,154] - Starting new HTTPS connection (1): github.com:443
[DEBUG | 2025-01-16 15:25:10,667] - https://github.com:443 "GET /dtankdempse/moveonjoy-m3u/raw/refs/heads/main/epg.xml.gz HTTP/1.1" 302 0
[DEBUG | 2025-01-16 15:25:10,671] - Starting new HTTPS connection (1): raw.githubusercontent.com:443
[DEBUG | 2025-01-16 15:25:11,164] - https://raw.githubusercontent.com:443 "GET /dtankdempse/moveonjoy-m3u/refs/heads/main/epg.xml.gz HTTP/1.1" 200 1585998
[ERROR | 2025-01-16 15:25:11,432] - Exception on /playlists/plm_main [POST]
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/flask/app.py", line 1511, in wsgi_app
response = self.full_dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/flask/app.py", line 919, in full_dispatch_request
rv = self.handle_user_exception(e)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/flask/app.py", line 917, in full_dispatch_request
rv = self.dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/flask/app.py", line 902, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/slm.py", line 2662, in webpage_playlists
get_final_m3us_epgs()
File "/app/slm.py", line 3247, in get_final_m3us_epgs
get_epgs_for_m3us()
File "/app/slm.py", line 3390, in get_epgs_for_m3us
response_text = response.content.decode('utf-8')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte
2025-01-16 15:25:11.435368: ERROR: Webpage responded... 500 INTERNAL SERVER ERROR
Client IP: 10.89.2.16
Method: POST
URL: http://10.0.0.3:5000/playlists/plm_main
Headers:
Host: 10.0.0.3:5000
Connection: keep-alive
Content-Length: 39301
Cache-Control: max-age=0
**************End of log portion **************