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-31 21:30:41Z]: 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: d1782c56-8428-477e-a184-9e06b0361500 Correlation ID: 3440fa4b-47bd-44a9-b797-3254975410ce Timestamp: 2026-03-31 21:30:41Z - Correlation ID: 3440fa4b-47bd-44a9-b797-3254975410ce - Trace ID: d1782c56-8428-477e-a184-9e06b0361500
(node:4980) [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-31 21:30:42Z]: 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: d8a40dff-2253-486a-82f7-bc6ca3404700 Correlation ID: 0324b011-744e-4669-82b6-173052a10504 Timestamp: 2026-03-31 21:30:42Z - Correlation ID: 0324b011-744e-4669-82b6-173052a10504 - Trace ID: d8a40dff-2253-486a-82f7-bc6ca3404700
Error getting the secret: invalid_client: 7000222 - [2026-03-31 21:30:42Z]: 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: 4bb88ffa-86c7-4ceb-b806-1f5dc1203900 Correlation ID: e451b77a-37a2-4633-aa18-beb56c3e2edf Timestamp: 2026-03-31 21:30:42Z - Correlation ID: e451b77a-37a2-4633-aa18-beb56c3e2edf - Trace ID: 4bb88ffa-86c7-4ceb-b806-1f5dc1203900
Error getting the secret: invalid_client: 7000222 - [2026-03-31 21:30:42Z]: 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: fe72408e-7ffe-456a-a592-3799e6cf5600 Correlation ID: 222c7542-0420-4aa0-9d42-b1178c09f75c Timestamp: 2026-03-31 21:30:42Z - Correlation ID: 222c7542-0420-4aa0-9d42-b1178c09f75c - Trace ID: fe72408e-7ffe-456a-a592-3799e6cf5600
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)