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-16 14:00: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: 551e45a3-4a1c-4d15-ba2d-8ee048643000 Correlation ID: 62561c40-f04f-4451-9909-7871914dbd54 Timestamp: 2026-04-16 14:00:33Z - Correlation ID: 62561c40-f04f-4451-9909-7871914dbd54 - Trace ID: 551e45a3-4a1c-4d15-ba2d-8ee048643000
(node:3396) [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-16 14:00: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: 9cddb863-ca0e-4c0a-8af7-0af4a3f07500 Correlation ID: 9144dae4-c2b2-4d00-b1b3-d68a46be37cf Timestamp: 2026-04-16 14:00:33Z - Correlation ID: 9144dae4-c2b2-4d00-b1b3-d68a46be37cf - Trace ID: 9cddb863-ca0e-4c0a-8af7-0af4a3f07500
Error getting the secret: invalid_client: 7000222 - [2026-04-16 14:00: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: 1613e3fb-f631-4adf-861a-44ff73880800 Correlation ID: 22b8c3ae-f305-48c0-9564-27718773a33a Timestamp: 2026-04-16 14:00:33Z - Correlation ID: 22b8c3ae-f305-48c0-9564-27718773a33a - Trace ID: 1613e3fb-f631-4adf-861a-44ff73880800
Error getting the secret: invalid_client: 7000222 - [2026-04-16 14:00: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: 0cd2a620-052a-4e4b-9272-a072f3452a00 Correlation ID: 48f20cb8-9e37-4ebe-ae07-93203a907207 Timestamp: 2026-04-16 14:00:33Z - Correlation ID: 48f20cb8-9e37-4ebe-ae07-93203a907207 - Trace ID: 0cd2a620-052a-4e4b-9272-a072f3452a00
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)