Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable LabHub when GitHub/GitLab token and org name isn't enabled #253

Open
co-robo opened this issue Aug 9, 2017 · 1 comment
Open

Comments

@co-robo
Copy link

co-robo commented Aug 9, 2017

Opened by @yukiisbored at gitter//yukiisbored

@jayvdb
Copy link
Member

jayvdb commented Nov 27, 2017

During startup without a GitHub token in the environment (readme says it is optional) we see

22:05:43 ERROR    errbot.plugins.LabHub     Cannot create github object, please check GH_TOKEN
22:05:43 DEBUG    urllib3.connectionpool    Starting new HTTPS connection (1): api.github.com
...
20:20:56 DEBUG    urllib3.connectionpool    https://api.github.com:443 "GET /user/repos HTTP/1.1" 401 121
20:20:56 ERROR    errbot.plugins.LabHub     Something went wrong in fetching github repos.
Traceback (most recent call last):
  File "corobo/plugins/labhub.py", line 72, in __init__
    self.IGH.write_repositories)}
  File "../IGitt/GitHub/GitHub.py", line 67, in write_repositories
    repo_list = get(self._token, '/user/repos')
  File "../IGitt/GitHub/__init__.py", line 61, in get
    url, query_params=params, headers=headers)
  File "../IGitt/Interfaces/__init__.py", line 49, in wrap_func
    raise RuntimeError(response, code)
RuntimeError: ({'message': 'Requires authentication', 'documentation_url': 'https://developer.github.com/v3/repos/#list-your-repositories'}, 401)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

4 participants