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-21 09:20:32Z]: 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: c13d4a11-4086-48f0-8188-685119462800 Correlation ID: 958a6278-acd5-48fa-9150-f44524a38659 Timestamp: 2026-04-21 09:20:32Z - Correlation ID: 958a6278-acd5-48fa-9150-f44524a38659 - Trace ID: c13d4a11-4086-48f0-8188-685119462800
(node:2164) [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-21 09:20:32Z]: 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: bb5013ad-a498-404f-b95c-36a855052d00 Correlation ID: f24a3e36-a192-488c-afe7-74961fbf6700 Timestamp: 2026-04-21 09:20:32Z - Correlation ID: f24a3e36-a192-488c-afe7-74961fbf6700 - Trace ID: bb5013ad-a498-404f-b95c-36a855052d00
Error getting the secret: invalid_client: 7000222 - [2026-04-21 09:20:32Z]: 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: 603b37de-db4c-4dbb-8a5b-d1291c660000 Correlation ID: c3667f89-7c3e-40db-b0a1-e15347a8d90b Timestamp: 2026-04-21 09:20:32Z - Correlation ID: c3667f89-7c3e-40db-b0a1-e15347a8d90b - Trace ID: 603b37de-db4c-4dbb-8a5b-d1291c660000
Error getting the secret: invalid_client: 7000222 - [2026-04-21 09:20:33Z]: 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: c77c070e-9265-4ac0-a272-b17f2a5f2b00 Correlation ID: 4451e148-c751-43ba-852d-57e6d440cfd5 Timestamp: 2026-04-21 09:20:33Z - Correlation ID: 4451e148-c751-43ba-852d-57e6d440cfd5 - Trace ID: c77c070e-9265-4ac0-a272-b17f2a5f2b00
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)