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-02 12:36: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: d2670f55-723b-4637-8409-c048ebb58500 Correlation ID: 7d091833-22f7-45b9-a1eb-b97f1d651f5e Timestamp: 2026-03-02 12:36:30Z - Correlation ID: 7d091833-22f7-45b9-a1eb-b97f1d651f5e - Trace ID: d2670f55-723b-4637-8409-c048ebb58500
(node:4868) [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-02 12:36: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: 5d260f3d-d37a-4923-8952-f96984c70100 Correlation ID: cd28280f-6062-4a0f-bcf5-c5f9d66e4124 Timestamp: 2026-03-02 12:36:30Z - Correlation ID: cd28280f-6062-4a0f-bcf5-c5f9d66e4124 - Trace ID: 5d260f3d-d37a-4923-8952-f96984c70100
Error getting the secret: invalid_client: 7000222 - [2026-03-02 12:36: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: db1b9371-4787-4c60-b6db-e8600f3d0e00 Correlation ID: d81c0d38-6c09-4724-86e2-456f80666885 Timestamp: 2026-03-02 12:36:31Z - Correlation ID: d81c0d38-6c09-4724-86e2-456f80666885 - Trace ID: db1b9371-4787-4c60-b6db-e8600f3d0e00
Error getting the secret: invalid_client: 7000222 - [2026-03-02 12:36: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: 2f47da97-08af-4176-97d2-14163e004f00 Correlation ID: 7a7c10f3-974a-4e56-b8e2-5f95180827bc Timestamp: 2026-03-02 12:36:31Z - Correlation ID: 7a7c10f3-974a-4e56-b8e2-5f95180827bc - Trace ID: 2f47da97-08af-4176-97d2-14163e004f00
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)