iisnode encountered an error when processing the request.
HRESULT: 0x2 HTTP status: 500 HTTP subStatus: 1002 HTTP reason: Internal Server Error
You are receiving this HTTP 200 response because system.webServer/iisnode/@devErrorsEnabled configuration setting is 'true'.
In addition to the log of stdout and stderr of the node.exe process, consider using debugging and ETW traces to further diagnose the problem.
The last 64k of the output generated by the node.exe process to stderr is shown below:
Error getting the secret: Caller is not authorized to perform action on resource. If role assignments, deny assignments or role definitions were changed recently, please observe propagation time. Caller: appid=1a3f705e-321b-477c-a2a9-dd6e240f8c1e;oid=4c9a93dc-f11a-435d-9682-94896bc0a902;iss=https://sts.windows.net/d215f1b1-b20e-403b-8e71-302fb40537bb/ Action: 'Microsoft.KeyVault/vaults/secrets/getSecret/action' Resource: '/subscriptions/57978ac3-e0f4-4cd1-903b-1f0102501bd7/resourcegroups/azure_qa/providers/microsoft.keyvault/vaults/vw-secrets-qa/secrets/companyandcarline' Assignment: (not found) DenyAssignmentId: null DecisionReason: null Vault: VW-Secrets-QA;location=eastus (node:5592) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. (Use `node --trace-deprecation ...` to show where the warning was created) Error getting the secret: Caller is not authorized to perform action on resource. If role assignments, deny assignments or role definitions were changed recently, please observe propagation time. Caller: appid=1a3f705e-321b-477c-a2a9-dd6e240f8c1e;oid=4c9a93dc-f11a-435d-9682-94896bc0a902;iss=https://sts.windows.net/d215f1b1-b20e-403b-8e71-302fb40537bb/ Action: 'Microsoft.KeyVault/vaults/secrets/getSecret/action' Resource: '/subscriptions/57978ac3-e0f4-4cd1-903b-1f0102501bd7/resourcegroups/azure_qa/providers/microsoft.keyvault/vaults/vw-secrets-qa/secrets/basicauth' Assignment: (not found) DenyAssignmentId: null DecisionReason: null Vault: VW-Secrets-QA;location=eastus Error getting the secret: Caller is not authorized to perform action on resource. If role assignments, deny assignments or role definitions were changed recently, please observe propagation time. Caller: appid=1a3f705e-321b-477c-a2a9-dd6e240f8c1e;oid=4c9a93dc-f11a-435d-9682-94896bc0a902;iss=https://sts.windows.net/d215f1b1-b20e-403b-8e71-302fb40537bb/ Action: 'Microsoft.KeyVault/vaults/secrets/getSecret/action' Resource: '/subscriptions/57978ac3-e0f4-4cd1-903b-1f0102501bd7/resourcegroups/azure_qa/providers/microsoft.keyvault/vaults/vw-secrets-qa/secrets/cosmoscredentials' Assignment: (not found) DenyAssignmentId: null DecisionReason: null Vault: VW-Secrets-QA;location=eastus Error getting the secret: Caller is not authorized to perform action on resource. If role assignments, deny assignments or role definitions were changed recently, please observe propagation time. Caller: appid=1a3f705e-321b-477c-a2a9-dd6e240f8c1e;oid=4c9a93dc-f11a-435d-9682-94896bc0a902;iss=https://sts.windows.net/d215f1b1-b20e-403b-8e71-302fb40537bb/ Action: 'Microsoft.KeyVault/vaults/secrets/getSecret/action' Resource: '/subscriptions/57978ac3-e0f4-4cd1-903b-1f0102501bd7/resourcegroups/azure_qa/providers/microsoft.keyvault/vaults/vw-secrets-qa/secrets/db2connectionstring' Assignment: (not found) DenyAssignmentId: null DecisionReason: null Vault: VW-Secrets-QA;location=eastus Application has thrown an uncaught exception and is terminated: TypeError: Cannot read properties of undefined (reading 'cosdb') at C:\stop_order_dev\server.js:25:30 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)