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-03-28 05:51:37Z]: 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: b37d9e29-7319-4709-997d-d2d17a840100 Correlation ID: 84e7b60a-079a-43c0-913a-86ccc2810095 Timestamp: 2026-03-28 05:51:37Z - Correlation ID: 84e7b60a-079a-43c0-913a-86ccc2810095 - Trace ID: b37d9e29-7319-4709-997d-d2d17a840100
(node:96) [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-03-28 05:51:37Z]: 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: bdd73736-7e28-4fbd-bb6f-96d9e7130000 Correlation ID: 69dbe86f-37b4-40f4-8f87-a58b974422dc Timestamp: 2026-03-28 05:51:37Z - Correlation ID: 69dbe86f-37b4-40f4-8f87-a58b974422dc - Trace ID: bdd73736-7e28-4fbd-bb6f-96d9e7130000
Error getting the secret: invalid_client: 7000222 - [2026-03-28 05:51:37Z]: 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: 1646168d-9b6e-47dd-aeee-2984e7fa0000 Correlation ID: 444e1b5d-393e-404b-8aaa-ae81edcea346 Timestamp: 2026-03-28 05:51:37Z - Correlation ID: 444e1b5d-393e-404b-8aaa-ae81edcea346 - Trace ID: 1646168d-9b6e-47dd-aeee-2984e7fa0000
Error getting the secret: invalid_client: 7000222 - [2026-03-28 05:51:37Z]: 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: ff541cbe-0c92-42d4-b584-59b6c39c0900 Correlation ID: 59b511d5-351c-49ba-af2d-51ec0819914d Timestamp: 2026-03-28 05:51:37Z - Correlation ID: 59b511d5-351c-49ba-af2d-51ec0819914d - Trace ID: ff541cbe-0c92-42d4-b584-59b6c39c0900
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)