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 01:52:00Z]: 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: d4a21375-109d-4588-b011-0760948c0900 Correlation ID: 125d5814-30b7-413d-8095-a65cf581edf5 Timestamp: 2026-04-07 01:52:00Z - Correlation ID: 125d5814-30b7-413d-8095-a65cf581edf5 - Trace ID: d4a21375-109d-4588-b011-0760948c0900
(node:3564) [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 01:52:00Z]: 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: 65aee1b4-00f4-433b-a7fe-85818b544e00 Correlation ID: a47f92d8-123a-41e7-b0be-803303381448 Timestamp: 2026-04-07 01:52:00Z - Correlation ID: a47f92d8-123a-41e7-b0be-803303381448 - Trace ID: 65aee1b4-00f4-433b-a7fe-85818b544e00
Error getting the secret: invalid_client: 7000222 - [2026-04-07 01:52:01Z]: 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: d4a21375-109d-4588-b011-07609f8c0900 Correlation ID: fd552845-2101-479f-bdf7-4e43f8c026a0 Timestamp: 2026-04-07 01:52:01Z - Correlation ID: fd552845-2101-479f-bdf7-4e43f8c026a0 - Trace ID: d4a21375-109d-4588-b011-07609f8c0900
Error getting the secret: invalid_client: 7000222 - [2026-04-07 01:52:01Z]: 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: 825c3438-9bd8-4567-a034-a8d17b290700 Correlation ID: ea386017-5665-4e69-ba6a-1fa3b9168d97 Timestamp: 2026-04-07 01:52:01Z - Correlation ID: ea386017-5665-4e69-ba6a-1fa3b9168d97 - Trace ID: 825c3438-9bd8-4567-a034-a8d17b290700
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)