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-22 10:28:39Z]: 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: 3f0244d2-8fa8-4579-b99c-85a941531b00 Correlation ID: 95258509-624f-4daf-a2dc-67d551185860 Timestamp: 2026-03-22 10:28:39Z - Correlation ID: 95258509-624f-4daf-a2dc-67d551185860 - Trace ID: 3f0244d2-8fa8-4579-b99c-85a941531b00
(node:5868) [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-22 10:28:40Z]: 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: 67cd263b-d7cd-48a7-9b17-c361c5621500 Correlation ID: a415b554-3319-43c6-91f2-0dd8cd725ca0 Timestamp: 2026-03-22 10:28:40Z - Correlation ID: a415b554-3319-43c6-91f2-0dd8cd725ca0 - Trace ID: 67cd263b-d7cd-48a7-9b17-c361c5621500
Error getting the secret: invalid_client: 7000222 - [2026-03-22 10:28:40Z]: 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: de480e80-f211-4b5c-b53b-c912fea13100 Correlation ID: 9b3eead7-3e06-422b-98b1-38e8ac281033 Timestamp: 2026-03-22 10:28:40Z - Correlation ID: 9b3eead7-3e06-422b-98b1-38e8ac281033 - Trace ID: de480e80-f211-4b5c-b53b-c912fea13100
Error getting the secret: invalid_client: 7000222 - [2026-03-22 10:28:40Z]: 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: d66a918f-0d61-42e0-b595-646299db1200 Correlation ID: d67d64db-df18-44bc-972d-d690e2ff015f Timestamp: 2026-03-22 10:28:40Z - Correlation ID: d67d64db-df18-44bc-972d-d690e2ff015f - Trace ID: d66a918f-0d61-42e0-b595-646299db1200
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)