Skip to content

Bad credentials when running npm run createComments #12

@flaviomoringa

Description

@flaviomoringa

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions