node-gitlab-2-github icon indicating copy to clipboard operation
node-gitlab-2-github copied to clipboard

TypeError: Cannot convert undefined or null to object

Open KodaCHC opened this issue 3 years ago • 3 comments

I have used an older version of this project until today. Since I always got into a rate limit (Not the second rate limit - after 6 hours break and only 30 issues) I downloaded the newest version today and adjusted the settings.ts.

But when I run "npm run start" no issues are imported at the end. Here is the last error message

Migrating issue #124 ('CUT_CUT_CUT')...
        ...ERROR while migrating issue #124.
DEBUG:
 TypeError: Cannot convert undefined or null to object
    at Function.keys (<anonymous>)
    at GithubHelper.<anonymous> (/root/node-gitlab-2-github/src/githubHelper.ts:1143:43)
    at step (/root/node-gitlab-2-github/src/githubHelper.ts:52:23)
    at Object.next (/root/node-gitlab-2-github/src/githubHelper.ts:33:53)
    at /root/node-gitlab-2-github/src/githubHelper.ts:27:71
    at new Promise (<anonymous>)
    at __awaiter (/root/node-gitlab-2-github/src/githubHelper.ts:23:12)
    at GithubHelper.convertIssuesAndComments (/root/node-gitlab-2-github/src/githubHelper.ts:1310:16)
    at GithubHelper.<anonymous> (/root/node-gitlab-2-github/src/githubHelper.ts:432:20)
    at step (/root/node-gitlab-2-github/src/githubHelper.ts:52:23)
        -> creating a replacement issue...
        ...ERROR: Could not create replacement issue either!
DONE creating issues.

        Statistics:
        Total nr. of issues: 124
        Nr. of used placeholder issues: 0
        Nr. of used replacement issues: 0
        Nr. of issue migration fails: 124


Transfer complete!

KodaCHC avatar Feb 22 '22 16:02 KodaCHC

Just ran into this too. What version were you using that worked @KodaCHC ?

4x0v7 avatar Apr 11 '22 18:04 4x0v7

Solved it. I hadn't set usermap and projectmap All migrated!

4x0v7 avatar Apr 11 '22 18:04 4x0v7

@KodaCHC Can You see whether setting usermap und projectmap fixes it for you as well?

spruce avatar Jun 19 '22 22:06 spruce