Closed sergk8 closed 9 months ago
This is reproducable with following versions of node:
Might be related to https://github.com/aws/aws-sdk-js/issues/158
With this package.json:
package.json
"binary": { "module_name": "bridge", "module_path": "./prebuilds/{node_napi_label}", "package_name": "{module_name}-{node_napi_label}.tar.gz", "host": "https://telepilot-prebuilt.s3.eu-central-1.amazonaws.com/", "napi_versions": [ 3 ] },
Running this command:
AWS_ACCESS_KEY_ID=xx AWS_SECRET_ACCESS_KEY=.. ./node_modules/.bin/node-pre-gyp publish
I'm getting following error:
Maximum call stack size exceeded node-pre-gyp info publish s3 headObject error: "RangeError: Maximum call stack size exceeded" node-pre-gyp ERR! publish error node-pre-gyp ERR! stack RangeError: Maximum call stack size exceeded node-pre-gyp ERR! stack at Readable.removeListener (node:internal/streams/readable:917:47) node-pre-gyp ERR! stack at console.value (node:internal/console/constructor:308:16) node-pre-gyp ERR! stack at console.log (node:internal/console/constructor:377:26) node-pre-gyp ERR! stack at /Users/telepilotco/projects/2023-n8n-tdlib-node/n8n-nodes-tdlib/node_modules/.pnpm/@mapbox+node-pre-gyp@1.0.0/node_modules/@mapbox/node-pre-gyp/lib/main.js:87:15 node-pre-gyp ERR! stack at Response.<anonymous> (/Users/telepilotco/projects/2023-n8n-tdlib-node/n8n-nodes-tdlib/node_modules/.pnpm/@mapbox+node-pre-gyp@1.0.0/node_modules/@mapbox/node-pre-gyp/lib/publish.js:72:16) node-pre-gyp ERR! stack at Request.<anonymous> (/Users/telepilotco/projects/2023-n8n-tdlib-node/n8n-nodes-tdlib/node_modules/.pnpm/aws-sdk@2.0.1/node_modules/aws-sdk/lib/request.js:367:18) node-pre-gyp ERR! stack at Request.callListeners (/Users/telepilotco/projects/2023-n8n-tdlib-node/n8n-nodes-tdlib/node_modules/.pnpm/aws-sdk@2.0.1/node_modules/aws-sdk/lib/sequential_executor.js:114:20) node-pre-gyp ERR! stack at Request.emit (/Users/telepilotco/projects/2023-n8n-tdlib-node/n8n-nodes-tdlib/node_modules/.pnpm/aws-sdk@2.0.1/node_modules/aws-sdk/lib/sequential_executor.js:81:10) node-pre-gyp ERR! stack at Request.emit (/Users/telepilotco/projects/2023-n8n-tdlib-node/n8n-nodes-tdlib/node_modules/.pnpm/aws-sdk@2.0.1/node_modules/aws-sdk/lib/request.js:593:14) node-pre-gyp ERR! stack at Request.transition (/Users/telepilotco/projects/2023-n8n-tdlib-node/n8n-nodes-tdlib/node_modules/.pnpm/aws-sdk@2.0.1/node_modules/aws-sdk/lib/request.js:24:12) node-pre-gyp ERR! System Darwin 21.6.0 node-pre-gyp ERR! command "/opt/homebrew/Cellar/node@18/18.15.0/bin/node" "/Users/telepilotco/projects/2023-n8n-tdlib-node/n8n-nodes-tdlib/node_modules/@mapbox/node-pre-gyp/bin/node-pre-gyp" "publish" node-pre-gyp ERR! cwd /Users/telepilotco/projects/2023-n8n-tdlib-node/n8n-nodes-tdlib node-pre-gyp ERR! node -v v18.15.0 node-pre-gyp ERR! node-pre-gyp -v v1.0.0 node-pre-gyp ERR! not ok Maximum call stack size exceeded node-pre-gyp info publish s3 headObject error: "RangeError: Maximum call stack size exceeded" node-pre-gyp ERR! publish error node-pre-gyp ERR! stack RangeError: Maximum call stack size exceeded node-pre-gyp ERR! stack at Readable.removeListener (node:internal/streams/readable:917:47) node-pre-gyp ERR! stack at console.value (node:internal/console/constructor:308:16) node-pre-gyp ERR! stack at console.log (node:internal/console/constructor:377:26) node-pre-gyp ERR! stack at /Users/telepilotco/projects/2023-n8n-tdlib-node/n8n-nodes-tdlib/node_modules/.pnpm/@mapbox+node-pre-gyp@1.0.0/node_modules/@mapbox/node-pre-gyp/lib/main.js:87:15 node-pre-gyp ERR! stack at Response.<anonymous> (/Users/telepilotco/projects/2023-n8n-tdlib-node/n8n-nodes-tdlib/node_modules/.pnpm/@mapbox+node-pre-gyp@1.0.0/node_modules/@mapbox/node-pre-gyp/lib/publish.js:72:16) node-pre-gyp ERR! stack at Request.<anonymous> (/Users/telepilotco/projects/2023-n8n-tdlib-node/n8n-nodes-tdlib/node_modules/.pnpm/aws-sdk@2.0.1/node_modules/aws-sdk/lib/request.js:367:18) node-pre-gyp ERR! stack at Request.callListeners (/Users/telepilotco/projects/2023-n8n-tdlib-node/n8n-nodes-tdlib/node_modules/.pnpm/aws-sdk@2.0.1/node_modules/aws-sdk/lib/sequential_executor.js:114:20) node-pre-gyp ERR! stack at Request.emit (/Users/telepilotco/projects/2023-n8n-tdlib-node/n8n-nodes-tdlib/node_modules/.pnpm/aws-sdk@2.0.1/node_modules/aws-sdk/lib/sequential_executor.js:81:10) node-pre-gyp ERR! stack at Request.emit (/Users/telepilotco/projects/2023-n8n-tdlib-node/n8n-nodes-tdlib/node_modules/.pnpm/aws-sdk@2.0.1/node_modules/aws-sdk/lib/request.js:593:14) node-pre-gyp ERR! stack at Request.transition (/Users/telepilotco/projects/2023-n8n-tdlib-node/n8n-nodes-tdlib/node_modules/.pnpm/aws-sdk@2.0.1/node_modules/aws-sdk/lib/request.js:24:12) node-pre-gyp ERR! System Darwin 21.6.0 node-pre-gyp ERR! command "/opt/homebrew/Cellar/node@18/18.15.0/bin/node" "/Users/telepilotco/projects/2023-n8n-tdlib-node/n8n-nodes-tdlib/node_modules/@mapbox/node-pre-gyp/bin/node-pre-gyp" "publish" node-pre-gyp ERR! cwd /Users/telepilotco/projects/2023-n8n-tdlib-node/n8n-nodes-tdlib node-pre-gyp ERR! node -v v18.15.0 node-pre-gyp ERR! node-pre-gyp -v v1.0.0 node-pre-gyp ERR! not ok
Closing as won't fix as I changed the setup to use two dependencies that provide binary files distributed via website and are built using node-gyp
node-gyp
This is reproducable with following versions of node:
Might be related to https://github.com/aws/aws-sdk-js/issues/158
With this
package.json
:Running this command:
I'm getting following error: