matbrgz / confluence-outline-migration

5 stars 4 forks source link

Confluence cloud error. #2

Open eugen-korentsov opened 1 year ago

eugen-korentsov commented 1 year ago

Hi, We're using confluence cloud, tried to test migration and got this error:

node:internal/errors:490
    ErrorCaptureStackTrace(err);
    ^

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received undefined
    at Object.openSync (node:fs:593:10)
    at Object.readFileSync (node:fs:469:35)
    at Object.load (/home/eugene/work/infra/confluence-outline-migration/src/state.js:9:25)
    at readBaseAndReturnNewObject (/home/eugene/work/infra/confluence-outline-migration/src/input.js:14:22)
    at Object.robot [as input] (/home/eugene/work/infra/confluence-outline-migration/src/input.js:9:23)
    at start (/home/eugene/work/infra/confluence-outline-migration/index.js:22:24)
    at Object.<anonymous> (/home/eugene/work/infra/confluence-outline-migration/index.js:46:1)
    at Module._compile (node:internal/modules/cjs/loader:1254:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
    at Module.load (node:internal/modules/cjs/loader:1117:32) {
  code: 'ERR_INVALID_ARG_TYPE'
}

Node.js v18.16.0

Can you please also clarify what should be exactly set in variables:

CONFLUENCE_URL CONFLUENCE_SPACEURL

eugen-korentsov commented 1 year ago

Also, seems JSON file should exist before starting this migration script?. I see some example in base/testing.json

phy12321 commented 1 year ago

same problem, have you fixed ?

Zlateshkin1337 commented 8 months ago

Also, seems JSON file should exist before starting this migration script?. I see some example in base/testing.json

have you fixed this problem?