webgme / webgme-engine

WebGME server and Client API without a GUI
MIT License
11 stars 7 forks source link

Error in BlobClient with node 18x (but works with 16x) #284

Closed pmeijer closed 1 year ago

pmeijer commented 1 year ago

Importing a webgmex file with assets results in the following error.

{
  message: 'The "chunk" argument must be of type string or an instance of Buffer or Uint8Array. Received an instance of Object',
  stack: 'TypeError [ERR_INVALID_ARG_TYPE]: The "chunk" argument must be of type string or an instance of Buffer or Uint8Array. Received an instance of Object\n' +
    '    at new NodeError (node:internal/errors:393:5)\n' +
    '    at write_ (node:_http_outgoing:843:11)\n' +
    '    at ClientRequest.end (node:_http_outgoing:977:5)\n' +
    '    at Request._end (/home/pmeijer/GIT/commit-and-tag/node_modules/superagent/lib/node/index.js:1021:9)\n' +
    '    at Request.end (/home/pmeijer/GIT/commit-and-tag/node_modules/superagent/lib/node/index.js:777:15)\n' +
    '    at BlobClient.putMetadata (/home/pmeijer/GIT/commit-and-tag/node_modules/webgme-engine/src/common/blob/BlobClient.js:301:14)\n' +
    '    at Promise.post (/home/pmeijer/GIT/commit-and-tag/node_modules/q/q.js:1181:36)\n' +
    '    at Promise.promise.promiseDispatch (/home/pmeijer/GIT/commit-and-tag/node_modules/q/q.js:808:41)\n' +
    '    at /home/pmeijer/GIT/commit-and-tag/node_modules/q/q.js:1411:14\n' +
    '    at runSingle (/home/pmeijer/GIT/commit-and-tag/node_modules/q/q.js:137:13)',
  toString: [Function: value],
  code: 'ERR_INVALID_ARG_TYPE'
}

May or may not matter but running within:

NAME="Ubuntu" VERSION="20.04.3 LTS (Focal Fossa)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 20.04.3 LTS" VERSION_ID="20.04"