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-04 05:40:33Z]: 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: 02ed71be-d9fb-413f-90cc-2d9edafb1600 Correlation ID: 4eb22111-065a-4a2b-8ace-605d42221d64 Timestamp: 2026-04-04 05:40:33Z - Correlation ID: 4eb22111-065a-4a2b-8ace-605d42221d64 - Trace ID: 02ed71be-d9fb-413f-90cc-2d9edafb1600
(node:5752) [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-04 05:40:33Z]: 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: 02ed71be-d9fb-413f-90cc-2d9ee1fb1600 Correlation ID: b74f5e93-c023-45c8-a3e0-ce30a76e0e6f Timestamp: 2026-04-04 05:40:33Z - Correlation ID: b74f5e93-c023-45c8-a3e0-ce30a76e0e6f - Trace ID: 02ed71be-d9fb-413f-90cc-2d9ee1fb1600
Error getting the secret: invalid_client: 7000222 - [2026-04-04 05:40:33Z]: 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: d72007cd-53e0-47ab-9b2f-f013271c3200 Correlation ID: cbaafedf-c975-452e-83e4-aa62e09a3942 Timestamp: 2026-04-04 05:40:33Z - Correlation ID: cbaafedf-c975-452e-83e4-aa62e09a3942 - Trace ID: d72007cd-53e0-47ab-9b2f-f013271c3200
Error getting the secret: invalid_client: 7000222 - [2026-04-04 05:40:34Z]: 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: f7d6acee-edf2-4287-bf4e-c437e4183600 Correlation ID: 86f15b86-08e4-49ba-a1ce-3dbe4fc4d2c0 Timestamp: 2026-04-04 05:40:34Z - Correlation ID: 86f15b86-08e4-49ba-a1ce-3dbe4fc4d2c0 - Trace ID: f7d6acee-edf2-4287-bf4e-c437e4183600
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)