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-04-25 21:22: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: 20bed4b3-a42b-43c4-b505-12b223441900 Correlation ID: 5c53561f-8601-41f3-9a3f-76afe7b5722d Timestamp: 2026-04-25 21:22:11Z - Correlation ID: 5c53561f-8601-41f3-9a3f-76afe7b5722d - Trace ID: 20bed4b3-a42b-43c4-b505-12b223441900
(node:5204) [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-04-25 21:22:12Z]: 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: 1752d1bc-a251-4c5b-8a85-9531a2521a00 Correlation ID: 27608e41-09a0-45ca-9849-f2fa66b6a7d4 Timestamp: 2026-04-25 21:22:12Z - Correlation ID: 27608e41-09a0-45ca-9849-f2fa66b6a7d4 - Trace ID: 1752d1bc-a251-4c5b-8a85-9531a2521a00
Error getting the secret: invalid_client: 7000222 - [2026-04-25 21:22:12Z]: 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: 717bf594-9be1-492a-b06f-5079a3891800 Correlation ID: 1a516709-abbe-4470-9efb-aa785f8eae34 Timestamp: 2026-04-25 21:22:12Z - Correlation ID: 1a516709-abbe-4470-9efb-aa785f8eae34 - Trace ID: 717bf594-9be1-492a-b06f-5079a3891800
Error getting the secret: invalid_client: 7000222 - [2026-04-25 21:22:13Z]: 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: 216d758e-ecd2-4af1-ac36-0aefe02d3800 Correlation ID: 8798663e-bd0b-4c42-970c-2da986a89a92 Timestamp: 2026-04-25 21:22:13Z - Correlation ID: 8798663e-bd0b-4c42-970c-2da986a89a92 - Trace ID: 216d758e-ecd2-4af1-ac36-0aefe02d3800
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)