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

Bad credentials when running npm run createComments #12

Open
flaviomoringa opened this issue Nov 17, 2020 · 0 comments
Open

Bad credentials when running npm run createComments #12

flaviomoringa opened this issue Nov 17, 2020 · 0 comments

Comments

@flaviomoringa
Copy link

Hi,

first thanks for this awesome tool.

All as ok until I run "npm run createComments" that gave me this errors:

Comments to process: 5
ETA: 06s
Could not create review 272429964
Could not create comment: 272429964
Message: StatusCodeError: 401 - {"message":"Bad credentials","documentation_url":"https://docs.github.com/rest"}
ETA: 04s
Could not create review 291882385
Could not create comment: 291882385
Message: StatusCodeError: 401 - {"message":"Bad credentials","documentation_url":"https://docs.github.com/rest"}
ETA: 03s
Adding comment 540488935 to https://api.github.com/repos/Catappult/advertising-service/issues/11/comments
Could not create comment: 540488935
Message: StatusCodeError: 401 - {"message":"Bad credentials","documentation_url":"https://docs.github.com/rest"}
ETA: 02s
Adding comment 541687533 to https://api.github.com/repos/Catappult/advertising-service/issues/11/comments
Could not create comment: 541687533
Message: StatusCodeError: 401 - {"message":"Bad credentials","documentation_url":"https://docs.github.com/rest"}
ETA: 01s
Could not create review 393825967
Could not create comment: 393825967
Message: StatusCodeError: 401 - {"message":"Bad credentials","documentation_url":"https://docs.github.com/rest"}

The user token is an admin on the target repo, so it should be able to create everything? Did I miss any permission on creating the token? I really don't know what the issue is....

Thanks

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

No branches or pull requests

1 participant