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-02-28 20:32:30Z]: 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: fc811f7e-9383-4b88-8d60-68795fc84100 Correlation ID: 558a424d-7517-4143-b3e2-6d941723435a Timestamp: 2026-02-28 20:32:30Z - Correlation ID: 558a424d-7517-4143-b3e2-6d941723435a - Trace ID: fc811f7e-9383-4b88-8d60-68795fc84100
(node:3944) [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-02-28 20:32:30Z]: 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: 0b6575d4-b28f-4d77-ae71-859ab7f83e00 Correlation ID: 5afef68b-1c6c-4219-8f0f-aab62f92e7cd Timestamp: 2026-02-28 20:32:30Z - Correlation ID: 5afef68b-1c6c-4219-8f0f-aab62f92e7cd - Trace ID: 0b6575d4-b28f-4d77-ae71-859ab7f83e00
Error getting the secret: invalid_client: 7000222 - [2026-02-28 20:32: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: 427037f5-b65d-422b-93d1-93b9c60f3f00 Correlation ID: ef142409-6bd2-4ff9-97b3-8d71f07ca396 Timestamp: 2026-02-28 20:32:31Z - Correlation ID: ef142409-6bd2-4ff9-97b3-8d71f07ca396 - Trace ID: 427037f5-b65d-422b-93d1-93b9c60f3f00
Error getting the secret: invalid_client: 7000222 - [2026-02-28 20:32: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: c672c3d5-798e-487c-8fbd-f50bfa913400 Correlation ID: 07835abc-409a-4334-a0a9-f38c74fa0647 Timestamp: 2026-02-28 20:32:31Z - Correlation ID: 07835abc-409a-4334-a0a9-f38c74fa0647 - Trace ID: c672c3d5-798e-487c-8fbd-f50bfa913400
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)