Hi, I’m having some issues deploying Netlify functions through the CI. Here is the error I’m getting:
Failed to upload file: &{Name:health Sum:c3f2203387ca2e24ec3d20d8c27359ee1b8e49e2787bba658975267c978ae874 Runtime:js Size:<nil> Path: Buffer:0xc0001f6330}
Full end of log:
12:34:14 AM: Function Dir: /opt/build/repo/functions/dist
12:34:14 AM: TempDir: /tmp/zisi-857404437
12:34:15 AM: Prepping functions with zip-it-and-ship-it 0.3.1
12:34:34 AM: [ { path: '/tmp/zisi-857404437/health.zip', runtime: 'js' },
12:34:34 AM: { path: '/tmp/zisi-857404437/process3dModel.zip',
12:34:34 AM: runtime: 'js' } ]
12:34:34 AM: Prepping functions complete
[...]
12:34:34 AM: Build script success
12:34:34 AM: Starting to deploy site from 'studio/build'
12:34:34 AM: Creating deploy tree
12:34:34 AM: 0 new files to upload
12:34:34 AM: 2 new functions to upload
12:36:56 AM: Failed to upload file: &{Name:process3dModel Sum:15bec3b5d5780a2927fdb3d879651765dd97f9adcaab59915caf184e81eadc27 Runtime:js Size:<nil> Path: Buffer:0xc000934000}
12:37:04 AM: Failed to upload file: &{Name:health Sum:c3f2203387ca2e24ec3d20d8c27359ee1b8e49e2787bba658975267c978ae874 Runtime:js Size:<nil> Path: Buffer:0xc0001f6330}
12:37:04 AM: failed during stage 'deploying site': Failed to execute deploy: Upload cancelled: health
12:37:04 AM: Failing build: Failed to deploy site
12:37:05 AM: Finished processing build request in 6m21.830165011s
This gets built by babel to transpile with a node@8 target, then deployed using zip-it-and-ship-it. I have tried keeping only the simplest function ("/health" reply “OK”) but it still fails.
I’m not too sure what can cause this. I’ve searched the docs and forum but didn’t find anything else than https://answers.netlify.com/t/failed-during-stage-deploying-site/1499 which doesn’t provide path to resolve the issue. No clue in the zip-it-and-ship-it repo either.
I originally thought this was due to yarn workspaces, but I don’t think so since I’ve handled modules hoisting so zip-it-and-ship-it can work. See the related issue I opened at https://github.com/netlify/zip-it-and-ship-it/issues/37.
The Netlify site is called “smplrspace”. I have now disabled functions until this gets resolved.
Appreciate any help or pointers, thanks folks.