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 04:34:10Z]: 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: 79e7793b-a7b6-4b47-84e1-e257bfc16c00 Correlation ID: 02d70fab-a50a-4a88-9b34-c196c608c0ce Timestamp: 2026-05-14 04:34:10Z - Correlation ID: 02d70fab-a50a-4a88-9b34-c196c608c0ce - Trace ID: 79e7793b-a7b6-4b47-84e1-e257bfc16c00
(node:6340) [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 04:34:10Z]: 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: c4ed7cb6-de77-4468-ade8-328c5bf50300 Correlation ID: 0fa8bc0f-37d6-4c12-993b-bb8c0a0d547a Timestamp: 2026-05-14 04:34:10Z - Correlation ID: 0fa8bc0f-37d6-4c12-993b-bb8c0a0d547a - Trace ID: c4ed7cb6-de77-4468-ade8-328c5bf50300
Error getting the secret: invalid_client: 7000222 - [2026-05-14 04:34:10Z]: 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: c4ed7cb6-de77-4468-ade8-328c5ff50300 Correlation ID: ab61c002-4eb1-4116-8f04-9d1826aaa6de Timestamp: 2026-05-14 04:34:10Z - Correlation ID: ab61c002-4eb1-4116-8f04-9d1826aaa6de - Trace ID: c4ed7cb6-de77-4468-ade8-328c5ff50300
Error getting the secret: invalid_client: 7000222 - [2026-05-14 04:34:11Z]: 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: a32a0287-eaa4-4168-8f0f-66c59be92300 Correlation ID: 795c2093-9a3e-4754-bc6e-a469d4c55e46 Timestamp: 2026-05-14 04:34:11Z - Correlation ID: 795c2093-9a3e-4754-bc6e-a469d4c55e46 - Trace ID: a32a0287-eaa4-4168-8f0f-66c59be92300
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)