You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When i trigger the function i immediately get a http 500 error.
Then I see this below error thats says cannot find module uuid. The function was working fine until May 3, 2024. My hunch is maybe a regression occured at that time?
I'm not sure if I need to update something as my package.json doesn't have a dependency of uuid directly.
Result: Failure Exception: Worker was unable to load function reports: 'Cannot find module 'uuid' Require stack: - /home/site/wwwroot/node_modules/@azure/core-http/dist/index.js - /home/site/wwwroot/node_modules/@azure/storage-blob/dist/index.js - /home/site/wwwroot/dist/shared/containerClient.js - /home/site/wwwroot/dist/reports/index.js - /azure-functions-host/workers/node/dist/src/worker-bundle.js - /azure-functions-host/workers/node/dist/src/nodejsWorker.js' Stack: Error: Worker was unable to load function reports: 'Cannot find module 'uuid' Require stack: - /home/site/wwwroot/node_modules/@azure/core-http/dist/index.js - /home/site/wwwroot/node_modules/@azure/storage-blob/dist/index.js - /home/site/wwwroot/dist/shared/containerClient.js - /home/site/wwwroot/dist/reports/index.js - /azure-functions-host/workers/node/dist/src/worker-bundle.js - /azure-functions-host/workers/node/dist/src/nodejsWorker.js' at Module._resolveFilename (node:internal/modules/cjs/loader:1140:15) at Module._load (node:internal/modules/cjs/loader:981:27) at Module.require (node:internal/modules/cjs/loader:1231:19) at Object.apply (/azure-functions-host/workers/node/dist/src/worker-bundle.js:2:51713) at require (node:internal/modules/helpers:177:18) at Object. (/home/site/wwwroot/node_modules/@azure/core-http/dist/index.js:5:12) at Module._compile (node:internal/modules/cjs/loader:1364:14) at Module._extensions..js (node:internal/modules/cjs/loader:1422:10) at Module.load (node:internal/modules/cjs/loader:1203:32) at Module._load (node:internal/modules/cjs/loader:1019:12)
The text was updated successfully, but these errors were encountered:
charlesanim
changed the title
Worker was unable to load function
HTTP 500: Error in logs says Worker was unable to load function: 'Cannot find module 'uuid'
May 14, 2024
Can you double check your node_modules folder to ensure that uuid is there? My best guess is this may have been a deployment issue causing uuid (and potentially other modules) to be missing in your deployed app
I checked node_modules folder of the zip file that was deployed to storage account, UUID is not there, but I ran my functions locally via Visual studio code attach to Node Functions and the local functions works as expected as I setup the local.settings.json env variables to match prod, so im able to call the api endpoints and get success response as the endpoints just return html from blob storage based on ids. See below:
I redeployed the function from local vscode and now getting
Result: Failure Exception: Stack: RestError at handleErrorResponse (/home/site/wwwroot/node_modules/@azure/core-http/dist/index.js:3139:19) at /home/site/wwwroot/node_modules/@azure/core-http/dist/index.js:3075:49 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
When i trigger the function i immediately get a http 500 error.
Then I see this below error thats says cannot find module
uuid
. The function was working fine until May 3, 2024. My hunch is maybe a regression occured at that time?I'm not sure if I need to update something as my package.json doesn't have a dependency of uuid directly.
"@azure/functions": "^3.5.0",
"@azure/storage-blob": "^12.10.0"
In host.json, i have
Result: Failure Exception: Worker was unable to load function reports: 'Cannot find module 'uuid' Require stack: - /home/site/wwwroot/node_modules/@azure/core-http/dist/index.js - /home/site/wwwroot/node_modules/@azure/storage-blob/dist/index.js - /home/site/wwwroot/dist/shared/containerClient.js - /home/site/wwwroot/dist/reports/index.js - /azure-functions-host/workers/node/dist/src/worker-bundle.js - /azure-functions-host/workers/node/dist/src/nodejsWorker.js' Stack: Error: Worker was unable to load function reports: 'Cannot find module 'uuid' Require stack: - /home/site/wwwroot/node_modules/@azure/core-http/dist/index.js - /home/site/wwwroot/node_modules/@azure/storage-blob/dist/index.js - /home/site/wwwroot/dist/shared/containerClient.js - /home/site/wwwroot/dist/reports/index.js - /azure-functions-host/workers/node/dist/src/worker-bundle.js - /azure-functions-host/workers/node/dist/src/nodejsWorker.js' at Module._resolveFilename (node:internal/modules/cjs/loader:1140:15) at Module._load (node:internal/modules/cjs/loader:981:27) at Module.require (node:internal/modules/cjs/loader:1231:19) at Object.apply (/azure-functions-host/workers/node/dist/src/worker-bundle.js:2:51713) at require (node:internal/modules/helpers:177:18) at Object. (/home/site/wwwroot/node_modules/@azure/core-http/dist/index.js:5:12) at Module._compile (node:internal/modules/cjs/loader:1364:14) at Module._extensions..js (node:internal/modules/cjs/loader:1422:10) at Module.load (node:internal/modules/cjs/loader:1203:32) at Module._load (node:internal/modules/cjs/loader:1019:12)
The text was updated successfully, but these errors were encountered: