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-04-24 15:22:31Z]: 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: fcf7cd93-1568-4dc2-a59b-5835722e1d00 Correlation ID: 535b02cd-a0a9-4565-9d11-a29b85bf0901 Timestamp: 2026-04-24 15:22:31Z - Correlation ID: 535b02cd-a0a9-4565-9d11-a29b85bf0901 - Trace ID: fcf7cd93-1568-4dc2-a59b-5835722e1d00
(node:2180) [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-04-24 15:22:31Z]: 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: f83d3e26-e481-4ec0-84c5-0c10d9066800 Correlation ID: 5ca0b547-d9d4-410c-9900-a9cb977ee118 Timestamp: 2026-04-24 15:22:31Z - Correlation ID: 5ca0b547-d9d4-410c-9900-a9cb977ee118 - Trace ID: f83d3e26-e481-4ec0-84c5-0c10d9066800
Error getting the secret: invalid_client: 7000222 - [2026-04-24 15:22:31Z]: 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: b51ed6aa-bd42-4a52-8563-54ca5bb91b00 Correlation ID: b0db0193-8a53-407a-9806-758e1d43339a Timestamp: 2026-04-24 15:22:31Z - Correlation ID: b0db0193-8a53-407a-9806-758e1d43339a - Trace ID: b51ed6aa-bd42-4a52-8563-54ca5bb91b00
Error getting the secret: invalid_client: 7000222 - [2026-04-24 15:22:31Z]: 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: 11be1228-bb16-4d70-b7d5-a4d2f73d7600 Correlation ID: 3988097c-49fd-4c6f-bc54-7179f0ae0637 Timestamp: 2026-04-24 15:22:31Z - Correlation ID: 3988097c-49fd-4c6f-bc54-7179f0ae0637 - Trace ID: 11be1228-bb16-4d70-b7d5-a4d2f73d7600
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)