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-26 18:19:15Z]: 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: 2f51868b-8bdf-4bfd-8f2b-bf7d2e924800 Correlation ID: a09a5588-3db9-4f55-9628-c81066597ea1 Timestamp: 2026-04-26 18:19:15Z - Correlation ID: a09a5588-3db9-4f55-9628-c81066597ea1 - Trace ID: 2f51868b-8bdf-4bfd-8f2b-bf7d2e924800
(node:3588) [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-26 18:19:15Z]: 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: 29b0a43b-96a5-458f-b834-548c8ea12b00 Correlation ID: c6beafeb-e759-4952-99ee-f867927a3202 Timestamp: 2026-04-26 18:19:15Z - Correlation ID: c6beafeb-e759-4952-99ee-f867927a3202 - Trace ID: 29b0a43b-96a5-458f-b834-548c8ea12b00
Error getting the secret: invalid_client: 7000222 - [2026-04-26 18:19:15Z]: 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: d45d5718-3622-46bb-a00a-6ca8e1852c00 Correlation ID: 39a6b29d-8d1e-4ce8-a252-020c33bcac4e Timestamp: 2026-04-26 18:19:15Z - Correlation ID: 39a6b29d-8d1e-4ce8-a252-020c33bcac4e - Trace ID: d45d5718-3622-46bb-a00a-6ca8e1852c00
Error getting the secret: invalid_client: 7000222 - [2026-04-26 18:19: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: c3ff2549-e841-4ae0-8819-b320deaa5200 Correlation ID: a052250b-014e-479f-9497-54d59cbdf0bc Timestamp: 2026-04-26 18:19:16Z - Correlation ID: a052250b-014e-479f-9497-54d59cbdf0bc - Trace ID: c3ff2549-e841-4ae0-8819-b320deaa5200
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)