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 - [2026-04-07 04:21:50Z]: 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: ac93a09e-e41f-4062-a957-1e4d1caa0a00 Correlation ID: 665470f9-3f7c-4fb4-b3ec-16055d201bfd Timestamp: 2026-04-07 04:21:50Z - Correlation ID: 665470f9-3f7c-4fb4-b3ec-16055d201bfd - Trace ID: ac93a09e-e41f-4062-a957-1e4d1caa0a00
(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: invalid_client: 7000222 - [2026-04-07 04:21:50Z]: 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: 09e5a761-4941-437b-ae92-5a3ec2180c00 Correlation ID: 12e08c72-92ce-4104-9438-c8f4b0e18d88 Timestamp: 2026-04-07 04:21:50Z - Correlation ID: 12e08c72-92ce-4104-9438-c8f4b0e18d88 - Trace ID: 09e5a761-4941-437b-ae92-5a3ec2180c00
Error getting the secret: invalid_client: 7000222 - [2026-04-07 04:21:50Z]: 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: 71174cf8-fae5-44ec-b7b6-c7b422c90600 Correlation ID: 98cf7f65-69c1-4aa8-8277-af1aad18d458 Timestamp: 2026-04-07 04:21:50Z - Correlation ID: 98cf7f65-69c1-4aa8-8277-af1aad18d458 - Trace ID: 71174cf8-fae5-44ec-b7b6-c7b422c90600
Error getting the secret: invalid_client: 7000222 - [2026-04-07 04:21:51Z]: 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: f2026357-09e2-4fc6-8c44-beeee8cb0900 Correlation ID: f5e9a4c8-f871-41ab-9ab0-0c8d9421c279 Timestamp: 2026-04-07 04:21:51Z - Correlation ID: f5e9a4c8-f871-41ab-9ab0-0c8d9421c279 - Trace ID: f2026357-09e2-4fc6-8c44-beeee8cb0900
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)