I'm currently in the process of developing a nodejs Lambda API using serverless. However, once it's deployed and I attempt to access my API endpoints, the server is throwing back an internal error. Unfortunately, CloudWatch isn't providing me with much information other than this specific output:
{
"errorType": "Error",
"errorMessage": "ENOENT: no such file or directory, open '/home/sbx_user1051/.serverlessrc.2618284497'",
"code": "ENOENT",
"errno": -2,
"syscall": "open",
"path": "/home/sbx_user1051/.serverlessrc.2618284497",
"stack": [
"Error: ENOENT: no such file or directory, open '/home/sbx_user1051/.serverlessrc.2618284497'",
" at Object.openSync (fs.js:443:3)",
" at Function.writeFileSync [as sync] (/var/task/node_modules/write-file-atomic/index.js:212:13)",
" at createConfig (/var/task/node_modules/serverless/lib/utils/config/index.js:38:19)",
" at getConfig (/var/task/node_modules/serverless/lib/utils/config/index.js:52:5)",
" at Object.get (/var/task/node_modules/serverless/lib/utils/config/index.js:99:18)",
" at Object.<anonymous> (/var/task/node_modules/serverless/lib/utils/isTrackingDisabled.js:5:75)",
" at Module._compile (internal/modules/cjs/loader.js:778:30)",
" at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)",
" at Module.load (internal/modules/cjs/loader.js:653:32)",
" at tryModuleLoad (internal/modules/cjs/loader.js:593:12)",
" at Function.Module._load (internal/modules/cjs/loader.js:585:3)",
" at Module.require (internal/modules/cjs/loader.js:692:17)",
" at require (internal/modules/cjs/helpers.js:25:18)",
" at Object.<anonymous> (/var/task/node_modules/serverless/lib/utils/tracking.js:11:28)",
" at Module._compile (internal/modules/cjs/loader.js:778:30)",
" at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)"
]
After spending an entire afternoon researching, I still haven't been able to find a solution.
If necessary, I am able to provide details about my serverless configuration or any other relevant information. Thank you to anyone who can offer assistance from here.