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-15 07:44:16Z]: 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: 449c0c8a-cf5d-49fb-bbf9-6d7f54535f00 Correlation ID: 4da21d84-e1b0-46d5-9e5c-d17d419abdda Timestamp: 2026-05-15 07:44:16Z - Correlation ID: 4da21d84-e1b0-46d5-9e5c-d17d419abdda - Trace ID: 449c0c8a-cf5d-49fb-bbf9-6d7f54535f00
(node:4216) [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-15 07:44:16Z]: 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: 4e0b0c2c-656e-427c-a87e-254e91b60b00 Correlation ID: 8bc4b400-f12c-46d3-abca-f54985d582c0 Timestamp: 2026-05-15 07:44:16Z - Correlation ID: 8bc4b400-f12c-46d3-abca-f54985d582c0 - Trace ID: 4e0b0c2c-656e-427c-a87e-254e91b60b00
Error getting the secret: invalid_client: 7000222 - [2026-05-15 07:44:16Z]: 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: 346f02ed-3e57-423e-8973-8260c1f21900 Correlation ID: f108cab0-5278-4df9-a99c-bb8f0262dd3b Timestamp: 2026-05-15 07:44:16Z - Correlation ID: f108cab0-5278-4df9-a99c-bb8f0262dd3b - Trace ID: 346f02ed-3e57-423e-8973-8260c1f21900
Error getting the secret: invalid_client: 7000222 - [2026-05-15 07:44:17Z]: 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: 6e0eedfb-10af-43fd-8905-83890bcc5300 Correlation ID: bf948452-5d9e-457c-93cb-6a1a92cb2243 Timestamp: 2026-05-15 07:44:17Z - Correlation ID: bf948452-5d9e-457c-93cb-6a1a92cb2243 - Trace ID: 6e0eedfb-10af-43fd-8905-83890bcc5300
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)