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-23 09:13:56Z]: 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: 7a4541ba-77d2-46a3-9c52-92de95b32600 Correlation ID: 38b8db81-264a-4292-92d1-d19c16e069c3 Timestamp: 2026-03-23 09:13:56Z - Correlation ID: 38b8db81-264a-4292-92d1-d19c16e069c3 - Trace ID: 7a4541ba-77d2-46a3-9c52-92de95b32600
(node:4636) [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-23 09:13:56Z]: 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: 3a9c2ec4-aa9d-460b-a748-72051c6e4000 Correlation ID: 33b63920-6843-403a-af9b-df4f8ca472e1 Timestamp: 2026-03-23 09:13:56Z - Correlation ID: 33b63920-6843-403a-af9b-df4f8ca472e1 - Trace ID: 3a9c2ec4-aa9d-460b-a748-72051c6e4000
Error getting the secret: invalid_client: 7000222 - [2026-03-23 09:13:56Z]: 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: 7a4541ba-77d2-46a3-9c52-92de99b32600 Correlation ID: 48b36476-6590-4fbc-91e5-589edc0e8c10 Timestamp: 2026-03-23 09:13:56Z - Correlation ID: 48b36476-6590-4fbc-91e5-589edc0e8c10 - Trace ID: 7a4541ba-77d2-46a3-9c52-92de99b32600
Error getting the secret: invalid_client: 7000222 - [2026-03-23 09:13:57Z]: 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: 3a9c2ec4-aa9d-460b-a748-7205286e4000 Correlation ID: 16bedee0-b5e5-4fd4-8731-efcca9221413 Timestamp: 2026-03-23 09:13:57Z - Correlation ID: 16bedee0-b5e5-4fd4-8731-efcca9221413 - Trace ID: 3a9c2ec4-aa9d-460b-a748-7205286e4000
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)