Error during creating
See original GitHub issueI’ve an issue during creating statuspage on MacOSX
Traceback (most recent call last): File "/usr/local/bin/statuspage", line 10, in <module> sys.exit(cli()) File "/Library/Python/2.7/site-packages/click/core.py", line 764, in __call__ return self.main(*args, **kwargs) File "/Library/Python/2.7/site-packages/click/core.py", line 717, in main rv = self.invoke(ctx) File "/Library/Python/2.7/site-packages/click/core.py", line 1137, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/Library/Python/2.7/site-packages/click/core.py", line 956, in invoke return ctx.invoke(self.callback, **ctx.params) File "/Library/Python/2.7/site-packages/click/core.py", line 555, in invoke return callback(*args, **kwargs) File "/Library/Python/2.7/site-packages/statuspage/statuspage.py", line 73, in update run_update(name=name, token=token, org=org) File "/Library/Python/2.7/site-packages/statuspage/statuspage.py", line 184, in run_update sha = repo.get_git_ref("heads/gh-pages").object.sha File "/Library/Python/2.7/site-packages/github/Repository.py", line 1907, in get_git_ref self.url + prefix + ref File "/Library/Python/2.7/site-packages/github/Requester.py", line 275, in requestJsonAndCheck return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url))) File "/Library/Python/2.7/site-packages/github/Requester.py", line 286, in __check raise self.__createException(status, responseHeaders, output) github.GithubException.GithubException: 409 {u'documentation_url': u'https://developer.github.com/v3/git/refs/#get-a-reference', u'message': u'Git Repository is empty.'}
Anyone could help is there anything can fix this issue ?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:5 (1 by maintainers)
Looks like the github api updated and changed some things.
I PR’d my changes which got it working for me.
@mrrsm great! will try it with your changes and report back.
Update: I moved on to another solution.