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 - [2025-12-11 13:23:08Z]: 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: 8a7190cb-32c5-44a1-9e85-9f259b802f00 Correlation ID: 8c7583e7-f144-4dd3-bb02-4852c2df920b Timestamp: 2025-12-11 13:23:08Z - Correlation ID: 8c7583e7-f144-4dd3-bb02-4852c2df920b - Trace ID: 8a7190cb-32c5-44a1-9e85-9f259b802f00
(node:1808) [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 - [2025-12-11 13:23:08Z]: 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: 61f290a5-d723-4ec6-840d-05998c703d00 Correlation ID: e34c1761-fd42-4c96-8561-1fbf6dc1b005 Timestamp: 2025-12-11 13:23:08Z - Correlation ID: e34c1761-fd42-4c96-8561-1fbf6dc1b005 - Trace ID: 61f290a5-d723-4ec6-840d-05998c703d00
Error getting the secret: invalid_client: 7000222 - [2025-12-11 13:23:08Z]: 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: 512ebdde-5002-40fe-b655-3692dae84000 Correlation ID: 67837960-3ae8-447d-8a66-fa9ad796b019 Timestamp: 2025-12-11 13:23:08Z - Correlation ID: 67837960-3ae8-447d-8a66-fa9ad796b019 - Trace ID: 512ebdde-5002-40fe-b655-3692dae84000
Error getting the secret: invalid_client: 7000222 - [2025-12-11 13:23:08Z]: 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: 37944c10-2a27-42fc-8f82-c70c32523d00 Correlation ID: 49705de4-5d14-48be-896e-72620581c68c Timestamp: 2025-12-11 13:23:08Z - Correlation ID: 49705de4-5d14-48be-896e-72620581c68c - Trace ID: 37944c10-2a27-42fc-8f82-c70c32523d00
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)