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-03 10:58:14Z]: 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: f18bb0b8-eefc-4524-be4f-e00f6d720d00 Correlation ID: a8bfd9d9-475a-416e-b2de-25804f908052 Timestamp: 2026-03-03 10:58:14Z - Correlation ID: a8bfd9d9-475a-416e-b2de-25804f908052 - Trace ID: f18bb0b8-eefc-4524-be4f-e00f6d720d00
(node:4256) [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-03 10:58:14Z]: 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: 94a5968f-81e0-4f60-adeb-a397c4bc3000 Correlation ID: 72392375-9a72-4b7e-bc62-3be058a359df Timestamp: 2026-03-03 10:58:14Z - Correlation ID: 72392375-9a72-4b7e-bc62-3be058a359df - Trace ID: 94a5968f-81e0-4f60-adeb-a397c4bc3000
Error getting the secret: invalid_client: 7000222 - [2026-03-03 10:58: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: 3c922041-5895-4689-8b43-a8f018282b00 Correlation ID: da68db0b-e963-45d7-a53f-e4e6cae2fbcd Timestamp: 2026-03-03 10:58:15Z - Correlation ID: da68db0b-e963-45d7-a53f-e4e6cae2fbcd - Trace ID: 3c922041-5895-4689-8b43-a8f018282b00
Error getting the secret: invalid_client: 7000222 - [2026-03-03 10:58: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: 73b04c4b-b0d7-42fb-bf75-7fe4e9542100 Correlation ID: 35fa2859-a182-4117-80d2-7e7b25e8f292 Timestamp: 2026-03-03 10:58:15Z - Correlation ID: 35fa2859-a182-4117-80d2-7e7b25e8f292 - Trace ID: 73b04c4b-b0d7-42fb-bf75-7fe4e9542100
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)