jayfk / jayfk/statuspage

Error during creating

Open
#264 5 comments 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
3.9k
Forks
180
PR merge metrics
No merged PRs in 30d

Description

I've an issue during creating statuspage on MacOSX

`Traceback (most recent call last):
File "/usr/local/bin/statuspage", line 10, in
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 ?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with statuspage/statuspage.py at the update call around lines 73 and 184, then review the traceback through github.Repository.get_git_ref. Reproduce the statuspage creation against an empty GitHub repository and verify that the resulting behavior appropriately accounts for the GitHub 409 “Git Repository is empty” response.

Written by the indexing model from the issue text.

Assessment

Tech stack
github, python
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.