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: invalid_client: 7000222 - [2025-12-29 21:54:08Z]: AADSTS7000222: The provided client secret keys for app '1a3f705e-321b-477c-a2a9-dd6e240f8c1e' are expired. Visit the Azure portal to create new keys for your app: https://aka.ms/NewClientSecret, or consider using certificate credentials for added security: https://aka.ms/certCreds. Trace ID: e5a174be-d674-48e4-9128-9e8a46800601 Correlation ID: 1339dcb7-e4bf-480c-bed9-d9ee82b52e86 Timestamp: 2025-12-29 21:54:08Z - Correlation ID: 1339dcb7-e4bf-480c-bed9-d9ee82b52e86 - Trace ID: e5a174be-d674-48e4-9128-9e8a46800601
(node:1832) [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: invalid_client: 7000222 - [2025-12-29 21:54:09Z]: AADSTS7000222: The provided client secret keys for app '1a3f705e-321b-477c-a2a9-dd6e240f8c1e' are expired. Visit the Azure portal to create new keys for your app: https://aka.ms/NewClientSecret, or consider using certificate credentials for added security: https://aka.ms/certCreds. Trace ID: 9d38fabe-d21c-463d-a8a0-c457d6150f00 Correlation ID: 892c4066-5645-453d-9730-6f2199731aad Timestamp: 2025-12-29 21:54:09Z - Correlation ID: 892c4066-5645-453d-9730-6f2199731aad - Trace ID: 9d38fabe-d21c-463d-a8a0-c457d6150f00
Error getting the secret: invalid_client: 7000222 - [2025-12-29 21:54:09Z]: AADSTS7000222: The provided client secret keys for app '1a3f705e-321b-477c-a2a9-dd6e240f8c1e' are expired. Visit the Azure portal to create new keys for your app: https://aka.ms/NewClientSecret, or consider using certificate credentials for added security: https://aka.ms/certCreds. Trace ID: adf88c50-d35e-4f1a-b2c1-9ccce524e000 Correlation ID: f952be38-72a3-4d06-9546-f3e03ab862a2 Timestamp: 2025-12-29 21:54:09Z - Correlation ID: f952be38-72a3-4d06-9546-f3e03ab862a2 - Trace ID: adf88c50-d35e-4f1a-b2c1-9ccce524e000
Error getting the secret: invalid_client: 7000222 - [2025-12-29 21:54:09Z]: AADSTS7000222: The provided client secret keys for app '1a3f705e-321b-477c-a2a9-dd6e240f8c1e' are expired. Visit the Azure portal to create new keys for your app: https://aka.ms/NewClientSecret, or consider using certificate credentials for added security: https://aka.ms/certCreds. Trace ID: e5a174be-d674-48e4-9128-9e8a58800601 Correlation ID: b8fa2788-8bd4-4971-9eec-379c813ef692 Timestamp: 2025-12-29 21:54:09Z - Correlation ID: b8fa2788-8bd4-4971-9eec-379c813ef692 - Trace ID: e5a174be-d674-48e4-9128-9e8a58800601
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)