Open ghost opened 8 years ago
Create .env file and get this output:
C:\Users\Suriyaa\Downloads\bot>heroku local
[OKAY] Loaded ENV .env File as KEY=VALUE Format
[OKAY] Trimming display Output to 149 Columns
14:37:31 web.1 | Traceback (most recent call last):
14:37:31 web.1 | File "run.py", line 8, in <module>
14:37:31 web.1 | jimaek = validator.PullBot()
14:37:31 web.1 | File "C:\Users\Suriyaa\Downloads\bot\validator.py", line 18, in __init__
14:37:31 web.1 | self.repo = self.gh.repository(self.config["owner"], self.config["repo"])
14:37:31 web.1 | File "C:\Python27\lib\site-packages\github3\github.py", line 1063, in repository
14:37:31 web.1 | json = self._json(self._get(url), 200)
14:37:31 web.1 | File "C:\Python27\lib\site-packages\github3\models.py", line 100, in _json
14:37:31 web.1 | if self._boolean(response, status_code, 404) and response.content:
14:37:31 web.1 | File "C:\Python27\lib\site-packages\github3\models.py", line 121, in _boolean
14:37:32 web.1 | raise GitHubError(response)
14:37:32 web.1 | github3.models.GitHubError: 401 Bad credentials
[DONE] Killing all processes with signal null
14:37:32 web.1 Exited Abnormally
github3.models.GitHubError: 401 Bad credentials
Is your auth token set correctly for the given user name?
@megawac
Well, publishing the project worked:
-----> Using set buildpack heroku/python
-----> Python app detected
-----> Noticed cffi. Bootstrapping libffi.
$ pip install -r requirements.txt
-----> Discovering process types
Procfile declares types -> web
-----> Compressing...
Done: 46.3M
-----> Launching...
Released v25
https://datacdn-bot.herokuapp.com/ deployed to Heroku
I selected the repo
and admin:repo_hook
scopes for the bot:
But it doesn't worked!
A Heroku Application Error: https://datacdn-bot.herokuapp.com/
I get this following warning: