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-02-08 03:55:14Z]: 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: a630e960-bfd8-4477-bd69-59dd6c913900 Correlation ID: 67616c55-fec5-4c2d-95f2-28e9b8de316d Timestamp: 2026-02-08 03:55:14Z - Correlation ID: 67616c55-fec5-4c2d-95f2-28e9b8de316d - Trace ID: a630e960-bfd8-4477-bd69-59dd6c913900
(node:560) [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-02-08 03:55:14Z]: 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: c70c7faa-3346-46db-948f-2e9fc62f3d00 Correlation ID: c73f57b5-95cc-4574-a037-feb07596639c Timestamp: 2026-02-08 03:55:14Z - Correlation ID: c73f57b5-95cc-4574-a037-feb07596639c - Trace ID: c70c7faa-3346-46db-948f-2e9fc62f3d00
Error getting the secret: invalid_client: 7000222 - [2026-02-08 03:55: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: 019ac956-cb68-4578-b581-516842174400 Correlation ID: 1353b332-1cc5-433a-8151-0f3f9c141a01 Timestamp: 2026-02-08 03:55:15Z - Correlation ID: 1353b332-1cc5-433a-8151-0f3f9c141a01 - Trace ID: 019ac956-cb68-4578-b581-516842174400
Error getting the secret: invalid_client: 7000222 - [2026-02-08 03:55: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: a630e960-bfd8-4477-bd69-59dd79913900 Correlation ID: c4c1f898-12ce-4174-8ab4-be800a6e9356 Timestamp: 2026-02-08 03:55:15Z - Correlation ID: c4c1f898-12ce-4174-8ab4-be800a6e9356 - Trace ID: a630e960-bfd8-4477-bd69-59dd79913900
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)