Got the 500 error again this morning when Channels DVR was refreshing the lineup m3u
2024/07/28 09:57:07.929422 [ERR] Unexpected m3u response for tubiTV: 500 INTERNAL SERVER ERROR
Container log shows this
2024-07-28T16:57:00.430907497Z [INFO] Reading channel id list cache
2024-07-28T16:57:00.431699855Z [INFO] Retriving EPG Data
2024-07-28T16:57:07.925737020Z [2024-07-28 16:57:07,878] ERROR in app: Exception on /tubi/playlist.m3u [GET]
2024-07-28T16:57:07.926575705Z Traceback (most recent call last):
2024-07-28T16:57:07.926750542Z File "/usr/local/lib/python3.12/site-packages/requests/models.py", line 820, in generate
2024-07-28T16:57:07.926895876Z yield from self.raw.stream(chunk_size, decode_content=True)
2024-07-28T16:57:07.927009106Z File "/usr/local/lib/python3.12/site-packages/urllib3/response.py", line 1057, in stream
2024-07-28T16:57:07.927122009Z yield from self.read_chunked(amt, decode_content=decode_content)
2024-07-28T16:57:07.927221473Z File "/usr/local/lib/python3.12/site-packages/urllib3/response.py", line 1206, in read_chunked
2024-07-28T16:57:07.927376536Z self._update_chunk_length()
2024-07-28T16:57:07.927500608Z File "/usr/local/lib/python3.12/site-packages/urllib3/response.py", line 1136, in _update_chunk_length
2024-07-28T16:57:07.927616353Z raise ProtocolError("Response ended prematurely") from None
2024-07-28T16:57:07.927726286Z urllib3.exceptions.ProtocolError: Response ended prematurely
2024-07-28T16:57:07.927825333Z
2024-07-28T16:57:07.927908958Z During handling of the above exception, another exception occurred:
2024-07-28T16:57:07.928018884Z
2024-07-28T16:57:07.928102069Z Traceback (most recent call last):
2024-07-28T16:57:07.928194811Z File "/usr/local/lib/python3.12/site-packages/flask/app.py", line 1473, in wsgi_app
2024-07-28T16:57:07.928318988Z response = self.full_dispatch_request()
2024-07-28T16:57:07.928480845Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-07-28T16:57:07.928577989Z File "/usr/local/lib/python3.12/site-packages/flask/app.py", line 882, in full_dispatch_request
2024-07-28T16:57:07.928689347Z rv = self.handle_user_exception(e)
2024-07-28T16:57:07.929046172Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-07-28T16:57:07.929268891Z File "/usr/local/lib/python3.12/site-packages/flask/app.py", line 880, in full_dispatch_request
2024-07-28T16:57:07.929452161Z rv = self.dispatch_request()
2024-07-28T16:57:07.929559876Z ^^^^^^^^^^^^^^^^^^^^^^^
2024-07-28T16:57:07.929732439Z File "/usr/local/lib/python3.12/site-packages/flask/app.py", line 865, in dispatch_request
2024-07-28T16:57:07.929964591Z return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
2024-07-28T16:57:07.930123192Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-07-28T16:57:07.930215840Z File "/app/pywsgi.py", line 82, in playlist
2024-07-28T16:57:07.930318690Z stations, err = providers[provider].channels()
2024-07-28T16:57:07.930506918Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-07-28T16:57:07.930602220Z File "/app/tubi.py", line 148, in channels
2024-07-28T16:57:07.930706315Z error = self.read_epg()
2024-07-28T16:57:07.930800219Z ^^^^^^^^^^^^^^^
2024-07-28T16:57:07.930883449Z File "/app/tubi.py", line 134, in read_epg
2024-07-28T16:57:07.930985210Z response = session.get(f'https://tubitv.com/oz/epg/programming', params=params)
2024-07-28T16:57:07.931101116Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-07-28T16:57:07.931189279Z File "/usr/local/lib/python3.12/site-packages/requests/sessions.py", line 602, in get
2024-07-28T16:57:07.931296491Z return self.request("GET", url, **kwargs)
2024-07-28T16:57:07.931458659Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-07-28T16:57:07.931555243Z File "/usr/local/lib/python3.12/site-packages/requests/sessions.py", line 589, in request
2024-07-28T16:57:07.931663755Z resp = self.send(prep, **send_kwargs)
2024-07-28T16:57:07.931762809Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-07-28T16:57:07.931846100Z File "/usr/local/lib/python3.12/site-packages/requests/sessions.py", line 746, in send
2024-07-28T16:57:07.932005457Z r.content
2024-07-28T16:57:07.932197982Z File "/usr/local/lib/python3.12/site-packages/requests/models.py", line 902, in content
2024-07-28T16:57:07.932385138Z self._content = b"".join(self.iter_content(CONTENT_CHUNK_SIZE)) or b""
2024-07-28T16:57:07.932517116Z ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-07-28T16:57:07.932606944Z File "/usr/local/lib/python3.12/site-packages/requests/models.py", line 822, in generate
2024-07-28T16:57:07.932720182Z raise ChunkedEncodingError(e)
2024-07-28T16:57:07.932813326Z requests.exceptions.ChunkedEncodingError: Response ended prematurely
2024-07-28T16:57:07.932113529Z [INFO] Reading channel id list cache
2024-07-28T16:57:07.933019283Z [INFO] Retriving EPG Data
2024-07-28T16:57:11.520794020Z [INFO] Channels: Available EPG data: 167
2024-07-28T16:57:11.867585859Z [INFO] Retriving EPG Data
I just manually refreshed the lineup with no errors.
2024/07/28 12:43:00.561882 [M3U] Refreshed lineup for tubiTV with 124 channels