github-migration icon indicating copy to clipboard operation
github-migration copied to clipboard

Bad credentials when running npm run createComments

Open flaviomoringa opened this issue 5 years ago • 0 comments

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

flaviomoringa avatar Nov 17 '20 10:11 flaviomoringa