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-05 13:15:02Z]: 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: 38aadc8e-aff8-4c76-b77e-c370a9612a00 Correlation ID: 3277c4ef-2400-4e6c-a14a-971e3677df57 Timestamp: 2026-03-05 13:15:02Z - Correlation ID: 3277c4ef-2400-4e6c-a14a-971e3677df57 - Trace ID: 38aadc8e-aff8-4c76-b77e-c370a9612a00
(node:1436) [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-05 13:15:02Z]: 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: 5d5a87dc-7261-4268-9866-c67142860200 Correlation ID: 609a9073-9e00-493f-820e-5d5f1d5612a3 Timestamp: 2026-03-05 13:15:02Z - Correlation ID: 609a9073-9e00-493f-820e-5d5f1d5612a3 - Trace ID: 5d5a87dc-7261-4268-9866-c67142860200
Error getting the secret: invalid_client: 7000222 - [2026-03-05 13:15:03Z]: 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: ad7e03c0-76f5-44fe-b0ac-5433b17a5900 Correlation ID: 13c03d9c-b001-4ecc-95e3-1d530b706d9b Timestamp: 2026-03-05 13:15:03Z - Correlation ID: 13c03d9c-b001-4ecc-95e3-1d530b706d9b - Trace ID: ad7e03c0-76f5-44fe-b0ac-5433b17a5900
Error getting the secret: invalid_client: 7000222 - [2026-03-05 13:15:03Z]: 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: fc8f3d1e-8f0e-49d2-9bd1-427112e43d00 Correlation ID: 81668b04-f29b-4c37-b39c-3c51c6d9eba2 Timestamp: 2026-03-05 13:15:03Z - Correlation ID: 81668b04-f29b-4c37-b39c-3c51c6d9eba2 - Trace ID: fc8f3d1e-8f0e-49d2-9bd1-427112e43d00
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)