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-02-09 04:06:25Z]: 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: ef2869f9-1dd3-462c-841f-6cd75ebd0200 Correlation ID: 835567de-7deb-4ead-b6a1-c7b8a9618b21 Timestamp: 2026-02-09 04:06:25Z - Correlation ID: 835567de-7deb-4ead-b6a1-c7b8a9618b21 - Trace ID: ef2869f9-1dd3-462c-841f-6cd75ebd0200
(node:1328) [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-02-09 04:06:25Z]: 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: 295da150-fc0c-4d4c-a3df-94eb66403700 Correlation ID: ed100172-9b6d-4a7c-aa9e-4b3aacf1df72 Timestamp: 2026-02-09 04:06:25Z - Correlation ID: ed100172-9b6d-4a7c-aa9e-4b3aacf1df72 - Trace ID: 295da150-fc0c-4d4c-a3df-94eb66403700
Error getting the secret: invalid_client: 7000222 - [2026-02-09 04:06:25Z]: 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: d0193e3e-f124-496c-986e-c2c455434d00 Correlation ID: 22dc0ade-95c7-4637-a424-8ae3bbda9085 Timestamp: 2026-02-09 04:06:25Z - Correlation ID: 22dc0ade-95c7-4637-a424-8ae3bbda9085 - Trace ID: d0193e3e-f124-496c-986e-c2c455434d00
Error getting the secret: invalid_client: 7000222 - [2026-02-09 04:06:25Z]: 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: f4a5c6f6-3e1a-49b4-8535-d1c6147c4100 Correlation ID: 284ec06a-29ad-43e0-ad39-ac5638f8c3f2 Timestamp: 2026-02-09 04:06:25Z - Correlation ID: 284ec06a-29ad-43e0-ad39-ac5638f8c3f2 - Trace ID: f4a5c6f6-3e1a-49b4-8535-d1c6147c4100
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)