Skip to content

Exception: Got empty response when trying to get the self username. #6

@savagex9000

Description

@savagex9000

Hi this app is really neat but I can't seem to make it work. I followed the instructions on how to set it up and managed to get to the point where I run the command on how to add channel but I am getting this error

When I issue this command

python youbot/run.py -c confs/generic.yml -l logs/generic.log -m add_channel -u <random channel id>

The error I am getting

2022-06-29 17:43:42 FancyLogger  INFO     Logger is set. Log file path: /home/user/Youtube-FirstCommentBot/logs/generic.log
Configuration file loaded successfully from path: /home/user/Youtube-FirstCommentBot/confs/generic.yml
Configuration Tag: generic
2022-06-29 17:43:44 [generic] YoutubeApi ERROR    Got empty response when trying to get the self username.
2022-06-29 17:43:44 [generic] Main ERROR    Got empty response when trying to get the self username.
Traceback (most recent call last):
  File "youbot/run.py", line 173, in <module>
    main()
  File "youbot/run.py", line 160, in main
    youtube = YoutubeManager(config=you_conf['config'],
  File "/home/user/anaconda3/envs/youbot/lib/python3.8/site-packages/youbot-2.0-py3.8.egg/youbot/youtube_utils/youtube_manager.py", line 72, in __init__
    super().__init__(config, tag)
  File "/home/user/anaconda3/envs/youbot/lib/python3.8/site-packages/youbot-2.0-py3.8.egg/youbot/youtube_utils/youtube_api.py", line 62, in __init__
    super().__init__(config, tag)
  File "/home/user/anaconda3/envs/youbot/lib/python3.8/site-packages/youbot-2.0-py3.8.egg/youbot/youtube_utils/youtube_api.py", line 44, in __init__
    self.channel_name, self.channel_id = self._get_my_username_and_id()
  File "/home/user/anaconda3/envs/youbot/lib/python3.8/site-packages/youbot-2.0-py3.8.egg/youbot/youtube_utils/youtube_api.py", line 107, in _get_my_username_and_id
    raise Exception(error_msg)
Exception: Got empty response when trying to get the self username.

Traceback (most recent call last):
  File "youbot/run.py", line 176, in <module>
    raise e
  File "youbot/run.py", line 173, in <module>
    main()
  File "youbot/run.py", line 160, in main
    youtube = YoutubeManager(config=you_conf['config'],
  File "/home/user/anaconda3/envs/youbot/lib/python3.8/site-packages/youbot-2.0-py3.8.egg/youbot/youtube_utils/youtube_manager.py", line 72, in __init__
    super().__init__(config, tag)
  File "/home/user/anaconda3/envs/youbot/lib/python3.8/site-packages/youbot-2.0-py3.8.egg/youbot/youtube_utils/youtube_api.py", line 62, in __init__
    super().__init__(config, tag)
  File "/home/user/anaconda3/envs/youbot/lib/python3.8/site-packages/youbot-2.0-py3.8.egg/youbot/youtube_utils/youtube_api.py", line 44, in __init__
    self.channel_name, self.channel_id = self._get_my_username_and_id()
  File "/home/user/anaconda3/envs/youbot/lib/python3.8/site-packages/youbot-2.0-py3.8.egg/youbot/youtube_utils/youtube_api.py", line 107, in _get_my_username_and_id
    raise Exception(error_msg)
Exception: Got empty response when trying to get the self username.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions