Skip to content

avatar_url error on npm run createComments #9

@krtx1

Description

@krtx1

Heya :)

Have a specific issue on avatar_url on createComments:

[root@ip-10-202-197-7 github-migration]# npm run createComments
migrate-github@1.0.0 createComments /opt/github-migration
node ./createComments.js
Comments to process: 96
ETA: 02m 52s
Comment 18 already processed
ETA: 02m 51s
Adding comment 10 to https://api.github.com/repos/dummy_test/pulls/1/comments
TypeError: Cannot read property 'avatar_url' of null
at createMessage (/opt/github-migration/createMessage.js:44:35)
at createPullRequestComment (/opt/github-migration/createComments.js:158:18)
at async createComment (/opt/github-migration/createComments.js:90:5)
at async main (/opt/github-migration/createComments.js:289:5)

The avatarUrl on the destination is the default:
avatarUrl: 'https://avatars0.githubusercontent.com/u/{id}?s=40&v=4',

How can I debug this further?

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