chat-downloader icon indicating copy to clipboard operation
chat-downloader copied to clipboard

[BUG] chat_downloader.errors.UserNotFound: Unable to find user (bogus error)

Open krichbanana opened this issue 3 years ago • 1 comments

Basic information

  • Program version: 0.1.9 at the time (since updated to 0.1.10)
  • Python version: 3.9.7
  • Operating system: Arch Linux x64, linux package 5.14.6-arch1-1

Describe the bug

The channel exists, but chat_downloader throws a "User not found" error. when it attempts to get a list of videos from channel, on rare occasion. The issue is transient and doesn't occur for any length of time.

Command/Code used

Otherwise, if using the python module, provide the following:

  1. A minimal reproducible example:
    downloader = ChatDownloader() 
    youtube = downloader.create_session(YouTubeChatDownloader)
    for video_status in ['upcoming', 'live', 'all']:
        for basic_video_details in youtube.get_user_videos(channel_id=channel_id, video_status=video_status): 
            pass  # processing here...
  1. Output, traceback or other information relating to the bug:
Traceback (most recent call last):
  ...client code...
    for basic_video_details in youtube.get_user_videos(channel_id=channel_id, video_status=video_status):
  File "$HOME/.local/lib/python3.9/site-packages/chat_downloader/sites/youtube.py", line 1183, in get_user_videos
    raise UserNotFound(f'Unable to find user: "{user_url}"')
chat_downloader.errors.UserNotFound: Unable to find user: "https://www.youtube.com/channel/UCxxxxxxxxxxxxxxxxxxxxxx"

Expected behavior

chat_downloader, when calling get_user_videos for a real, unsuspended channel, should get a list of all the videos on that channel tab.

Additional context/information

I suspect this may be a case of YouTube not returning data, perhaps a HTTP 500-type error or similar. I do not think it is a HTTP 429 error, since that is a more long-lasting condition, and causes chat_downloader to throw a parse error instead.

krichbanana avatar Oct 01 '21 00:10 krichbanana

Could you tell us what the channel is?

SuperSonicHub1 avatar Oct 30 '21 03:10 SuperSonicHub1

Closing since I am unable to reproduce it.

A similar issue also was raised in #174 (due to some HTML-related changes), so, it might have been something similar?

xenova avatar Nov 30 '22 22:11 xenova