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-30 14:47: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: b04596cd-4e2e-472e-963b-397650080600 Correlation ID: e7294cfd-060d-4150-8457-63bca03dfdec Timestamp: 2026-03-30 14:47:57Z - Correlation ID: e7294cfd-060d-4150-8457-63bca03dfdec - Trace ID: b04596cd-4e2e-472e-963b-397650080600
(node:1944) [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-30 14:47:58Z]: 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: 345a580a-33e1-4a09-8c03-94b24e241900 Correlation ID: b8ab0fab-70d6-475f-a3e3-c56aa1fa101d Timestamp: 2026-03-30 14:47:58Z - Correlation ID: b8ab0fab-70d6-475f-a3e3-c56aa1fa101d - Trace ID: 345a580a-33e1-4a09-8c03-94b24e241900
Error getting the secret: invalid_client: 7000222 - [2026-03-30 14:47:58Z]: 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: 7bfa49b4-0417-4163-bfdb-daca6dbc3400 Correlation ID: 2187564b-5745-4c65-b08a-c2d40beaad3e Timestamp: 2026-03-30 14:47:58Z - Correlation ID: 2187564b-5745-4c65-b08a-c2d40beaad3e - Trace ID: 7bfa49b4-0417-4163-bfdb-daca6dbc3400
Error getting the secret: invalid_client: 7000222 - [2026-03-30 14:47:58Z]: 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: 37c56494-e2d0-4d07-9700-3dbb1b332100 Correlation ID: 4b6dacc1-94e9-4a86-97c4-fa206a1c3a24 Timestamp: 2026-03-30 14:47:58Z - Correlation ID: 4b6dacc1-94e9-4a86-97c4-fa206a1c3a24 - Trace ID: 37c56494-e2d0-4d07-9700-3dbb1b332100
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)