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-22 01:25:15Z]: 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: 7a9e335d-2deb-4c65-9f0f-d4065a582d00 Correlation ID: 06e2c544-cd05-44f1-9e8c-80194eb2eb46 Timestamp: 2026-03-22 01:25:15Z - Correlation ID: 06e2c544-cd05-44f1-9e8c-80194eb2eb46 - Trace ID: 7a9e335d-2deb-4c65-9f0f-d4065a582d00
(node:5796) [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-22 01:25:15Z]: 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: 43681c57-045b-4fc6-b27e-e9e276961000 Correlation ID: b47e18b3-c53a-418e-a6b5-13be0af3a3d4 Timestamp: 2026-03-22 01:25:15Z - Correlation ID: b47e18b3-c53a-418e-a6b5-13be0af3a3d4 - Trace ID: 43681c57-045b-4fc6-b27e-e9e276961000
Error getting the secret: invalid_client: 7000222 - [2026-03-22 01:25:15Z]: 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: 9db3240f-7ede-4ca3-b0ba-27df89910f00 Correlation ID: 782dac7e-a3b3-4b12-a088-4b5053e24bc1 Timestamp: 2026-03-22 01:25:15Z - Correlation ID: 782dac7e-a3b3-4b12-a088-4b5053e24bc1 - Trace ID: 9db3240f-7ede-4ca3-b0ba-27df89910f00
Error getting the secret: invalid_client: 7000222 - [2026-03-22 01:25:15Z]: 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: 1eff3f5a-729d-4b8e-b09b-8165691d0f00 Correlation ID: 9817fb6d-34ce-4d8a-accc-aa21641978ed Timestamp: 2026-03-22 01:25:15Z - Correlation ID: 9817fb6d-34ce-4d8a-accc-aa21641978ed - Trace ID: 1eff3f5a-729d-4b8e-b09b-8165691d0f00
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)