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-05-05 14:47:55Z]: 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: 3cf117b2-0bd6-49ad-a4f1-7e04d2de7e00 Correlation ID: a1146988-ff40-426b-9bca-4c39e2cd83ce Timestamp: 2026-05-05 14:47:55Z - Correlation ID: a1146988-ff40-426b-9bca-4c39e2cd83ce - Trace ID: 3cf117b2-0bd6-49ad-a4f1-7e04d2de7e00
(node:4424) [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-05-05 14:47:55Z]: 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: e2344827-ab42-460e-a926-0e8fbd794e00 Correlation ID: b2a45d3b-6c32-41c0-9c7b-beae77a9885a Timestamp: 2026-05-05 14:47:55Z - Correlation ID: b2a45d3b-6c32-41c0-9c7b-beae77a9885a - Trace ID: e2344827-ab42-460e-a926-0e8fbd794e00
Error getting the secret: invalid_client: 7000222 - [2026-05-05 14:47:55Z]: 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: ed613762-4fd3-467b-8066-723eb2d28400 Correlation ID: 1ea23c23-2bf5-4a60-8864-365dba3df9e9 Timestamp: 2026-05-05 14:47:55Z - Correlation ID: 1ea23c23-2bf5-4a60-8864-365dba3df9e9 - Trace ID: ed613762-4fd3-467b-8066-723eb2d28400
Error getting the secret: invalid_client: 7000222 - [2026-05-05 14:47:55Z]: 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: 7e7ced5f-9154-4b3e-b91e-253624d38800 Correlation ID: e9f42dd0-b3f8-439c-a83e-5287949867d4 Timestamp: 2026-05-05 14:47:55Z - Correlation ID: e9f42dd0-b3f8-439c-a83e-5287949867d4 - Trace ID: 7e7ced5f-9154-4b3e-b91e-253624d38800
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)