Skip to content
This repository has been archived by the owner on Sep 3, 2021. It is now read-only.

Support for Topic Channels #176

Open
FireMasterK opened this issue Jan 3, 2021 · 3 comments
Open

Support for Topic Channels #176

FireMasterK opened this issue Jan 3, 2021 · 3 comments
Labels
bug Something isn't working youtube Youtube-related issue

Comments

@FireMasterK
Copy link
Member

Describe the bug
Topic Channels are broken.

To Reproduce
https://yotter.xyz/channel/UCm1rHFAOS5i_McuG8tIhTYA

Logs

2021-01-03 06:49:34,062] ERROR in app: Exception on /channel/UCm1rHFAOS5i_McuG8tIhTYA [GET]
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 2447, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1952, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1821, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/lib/python3.9/site-packages/flask/_compat.py", line 39, in reraise
    raise value
  File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1950, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1936, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/usr/local/lib/python3.9/site-packages/flask_login/utils.py", line 272, in decorated_view
    return func(*args, **kwargs)
  File "/usr/src/app/app/routes.py", line 433, in channel
    data = ytch.get_channel_tab_info(id, page, sort)
  File "/usr/src/app/youtube/channel.py", line 123, in get_channel_tab_info
    content = util.fetch_url(url,
  File "/usr/src/app/youtube/util.py", line 178, in fetch_url
    raise FetchError(str(response.status), reason=response.reason, ip=None)
youtube.util.FetchError: HTTP error during request: 500 Internal Server Error

Additional context
Topic channels are automatically generated channels by YouTube.

@FireMasterK FireMasterK added bug Something isn't working youtube Youtube-related issue labels Jan 3, 2021
@LivingWithHippos
Copy link

LivingWithHippos commented Mar 3, 2021

Getting almost (404 in logs, 500 in the browser) the same error in "normal" channels. I noticed that my instance routes them to /c/ and not to /channel/ but if I manually navigate to the /channel/ version I get the same error.

ERROR in app: Exception on /c/UCXKNiazqmuUi9CeX_kyDpjw [GET]
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 2447, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1952, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1821, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/usr/local/lib/python3.9/site-packages/flask/_compat.py", line 39, in reraise
    raise value
  File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1950, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1936, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/usr/local/lib/python3.9/site-packages/flask_login/utils.py", line 272, in decorated_view
    return func(*args, **kwargs)
  File "/usr/src/app/app/routes.py", line 432, in channel
    data = ytch.get_channel_tab_info(id, page, sort)
  File "/usr/src/app/youtube/channel.py", line 123, in get_channel_tab_info
    content = util.fetch_url(url,
  File "/usr/src/app/youtube/util.py", line 178, in fetch_url
    raise FetchError(str(response.status), reason=response.reason, ip=None)
youtube.util.FetchError: HTTP error during request: 404 Not Found

EDIT: maybe I should open another issue? I'm not sure it's related, it's just that the stacktrace was the same

@FireMasterK
Copy link
Member Author

I believe it's unrelated as Invidious broke too.

@pluja
Copy link
Member

pluja commented Mar 4, 2021

@LivingWithHippos yes please, open a different issue for this. Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working youtube Youtube-related issue
Projects
None yet
Development

No branches or pull requests

3 participants