Comments (5)
Looks like the github api updated and changed some things.
I PR'd my changes which got it working for me.
from statuspage.
UPDATED:
I was execute this command afte delete the existing repo and the result are:
Name: status Systems, eg (Website,API): Website, API Deleting initial labels: 100%|██████████| 9/9 [00:04<00:00, 2.20it/s] Creating status labels: 100%|██████████| 3/3 [00:01<00:00, 1.49it/s] Creating system labels: 100%|██████████| 2/2 [00:01<00:00, 1.96it/s] 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 65, in create run_create(name=name, token=token, systems=systems, org=org, private=private) File "/Library/Python/2.7/site-packages/statuspage/statuspage.py", line 262, in run_create name=name File "/Library/Python/2.7/site-packages/github/Repository.py", line 1651, in create_file input=put_parameters 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: 422 {u'documentation_url': u'https://developer.github.com/v3/repos/contents/#create-or-update-a-file', u'message': u'path cannot start with a slash', u'errors': [{u'field': u'path', u'code': u'invalid', u'resource': u'Commit'}]}
Still no luck
from statuspage.
I think I have the same error:
Deleting initial labels: 100%|##########| 9/9 [00:02<00:00, 3.43it/s]
Creating status labels: 100%|##########| 3/3 [00:01<00:00, 2.56it/s]
Creating system labels: 100%|##########| 3/3 [00:00<00:00, 3.10it/s]
Traceback (most recent call last):
File "/usr/local/bin/statuspage", line 11, in <module>
sys.exit(cli())
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/statuspage/statuspage.py", line 65, in create
run_create(name=name, token=token, systems=systems, org=org, private=private)
File "/usr/local/lib/python2.7/dist-packages/statuspage/statuspage.py", line 262, in run_create
name=name
File "/usr/local/lib/python2.7/dist-packages/github/Repository.py", line 1864, in create_file
input=put_parameters,
File "/usr/local/lib/python2.7/dist-packages/github/Requester.py", line 322, in requestJsonAndCheck
verb, url, parameters, headers, input, self.__customConnection(url)
File "/usr/local/lib/python2.7/dist-packages/github/Requester.py", line 345, in __check
raise self.__createException(status, responseHeaders, output)
github.GithubException.GithubException: 422 {"documentation_url": "https://developer.github.com/v3/repos/contents/#create-or-update-a-file", "message": "path cannot start with a slash", "errors": [{"field": "path", "code": "invalid", "resource": "Commit"}]}
from statuspage.
I tried to create status page and have also encountered the same error!
pi@raspberrypi:~ $ statuspage create --token=HIDDEN
Name: mystatuspage
Systems, eg (Website,API): Website, CDN, API
Deleting initial labels: 100%|██████████| 9/9 [00:03<00:00, 2.62it/s]
Creating status labels: 100%|██████████| 3/3 [00:01<00:00, 2.27it/s]
Creating system labels: 100%|██████████| 3/3 [00:01<00:00, 2.27it/s]
Traceback (most recent call last):
File "/home/pi/.local/bin/statuspage", line 10, in <module>
sys.exit(cli())
File "/usr/lib/python2.7/dist-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/usr/lib/python2.7/dist-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python2.7/dist-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python2.7/dist-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/pi/.local/lib/python2.7/site-packages/statuspage/statuspage.py", l ine 65, in create
run_create(name=name, token=token, systems=systems, org=org, private=private )
File "/home/pi/.local/lib/python2.7/site-packages/statuspage/statuspage.py", l ine 262, in run_create
name=name
File "/home/pi/.local/lib/python2.7/site-packages/github/Repository.py", line 1864, in create_file
input=put_parameters,
File "/home/pi/.local/lib/python2.7/site-packages/github/Requester.py", line 3 22, in requestJsonAndCheck
verb, url, parameters, headers, input, self.__customConnection(url)
File "/home/pi/.local/lib/python2.7/site-packages/github/Requester.py", line 3 45, in __check
raise self.__createException(status, responseHeaders, output)
github.GithubException.GithubException: 422 {"documentation_url": "https://devel oper.github.com/v3/repos/contents/#create-or-update-a-file", "message": "path ca nnot start with a slash", "errors": [{"field": "path", "code": "invalid", "resou rce": "Commit"}]}
from statuspage.
@mrrsm great! will try it with your changes and report back.
Update: I moved on to another solution.
from statuspage.
Related Issues (20)
- When no incident, typo in data-l10n-id prevent applying localisation HOT 2
- Error while creating status HOT 5
- PyPI package for 0.9.0 HOT 5
- Renmame/remove systems [fixed]
- StatusPage system function not working! HOT 1
- Gitlab Support? HOT 1
- Help. Error on creation. HOT 2
- Status page is not updated
- It won't login
- Use label description to detail services HOT 1
- Issue with setup (GithubException.GithubException: 422) HOT 2
- Create system categories
- Using Enterprise GitHub instead of github.com
- Please Korean Translate
- work with gitea ?
- Still maintained? HOT 5
- Creation Error: Path Cannot Start With Slash
- Outdated Corestatus.io link?
- No windows support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from statuspage.