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-05-17 03:32:21Z]: 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: 73a25a71-4fac-4305-8cdf-4e8174c22400 Correlation ID: f79ec2c5-fbde-4b0e-9c50-9b6a147760eb Timestamp: 2026-05-17 03:32:21Z - Correlation ID: f79ec2c5-fbde-4b0e-9c50-9b6a147760eb - Trace ID: 73a25a71-4fac-4305-8cdf-4e8174c22400
(node:6380) [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-05-17 03:32:21Z]: 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: 3ce82aaf-102e-4825-ba68-86a7386a0d00 Correlation ID: c029408e-0313-42d5-99e5-a8cdd014905b Timestamp: 2026-05-17 03:32:21Z - Correlation ID: c029408e-0313-42d5-99e5-a8cdd014905b - Trace ID: 3ce82aaf-102e-4825-ba68-86a7386a0d00
Error getting the secret: invalid_client: 7000222 - [2026-05-17 03:32:21Z]: 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: 350efbbd-27cc-4dc0-af3f-d87c6cc91800 Correlation ID: 570cf6ec-4d47-4b40-8ed1-aaecff230449 Timestamp: 2026-05-17 03:32:21Z - Correlation ID: 570cf6ec-4d47-4b40-8ed1-aaecff230449 - Trace ID: 350efbbd-27cc-4dc0-af3f-d87c6cc91800
Error getting the secret: invalid_client: 7000222 - [2026-05-17 03:32:21Z]: 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: 7562e3e6-8327-4086-9fc7-96ad3c830c00 Correlation ID: e6558c6d-0e57-4db5-b64c-550bc562f1d1 Timestamp: 2026-05-17 03:32:21Z - Correlation ID: e6558c6d-0e57-4db5-b64c-550bc562f1d1 - Trace ID: 7562e3e6-8327-4086-9fc7-96ad3c830c00
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)