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-05-14 10:37: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: cf6769cf-ec5d-497a-88a0-ac04119a4f00 Correlation ID: 5b3e72b0-b73e-459c-93f8-5911ad1b7074 Timestamp: 2026-05-14 10:37:15Z - Correlation ID: 5b3e72b0-b73e-459c-93f8-5911ad1b7074 - Trace ID: cf6769cf-ec5d-497a-88a0-ac04119a4f00
(node:5316) [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-05-14 10:37: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: aa5c9098-d0eb-4e55-9043-9cfdcc5a5500 Correlation ID: a2337399-ffb3-48d5-b174-85f091e0c548 Timestamp: 2026-05-14 10:37:15Z - Correlation ID: a2337399-ffb3-48d5-b174-85f091e0c548 - Trace ID: aa5c9098-d0eb-4e55-9043-9cfdcc5a5500
Error getting the secret: invalid_client: 7000222 - [2026-05-14 10:37: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: ae995e64-3e2a-4c90-ad63-d44583640200 Correlation ID: 9166680c-6702-43b9-9438-1fdb8a4fcee3 Timestamp: 2026-05-14 10:37:15Z - Correlation ID: 9166680c-6702-43b9-9438-1fdb8a4fcee3 - Trace ID: ae995e64-3e2a-4c90-ad63-d44583640200
Error getting the secret: invalid_client: 7000222 - [2026-05-14 10:37: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: 803d1541-c663-4113-94d5-3eef806b5600 Correlation ID: b4e0a0bd-3e88-4cf7-8bda-20fc3b0da462 Timestamp: 2026-05-14 10:37:15Z - Correlation ID: b4e0a0bd-3e88-4cf7-8bda-20fc3b0da462 - Trace ID: 803d1541-c663-4113-94d5-3eef806b5600
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)