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-05-02 18:00:50Z]: 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: d5fc2bf4-cfed-4728-ad3c-4aafaad74400 Correlation ID: 8ac769fa-0999-4be4-aa71-f1a1d0a05d01 Timestamp: 2026-05-02 18:00:50Z - Correlation ID: 8ac769fa-0999-4be4-aa71-f1a1d0a05d01 - Trace ID: d5fc2bf4-cfed-4728-ad3c-4aafaad74400
(node:2592) [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-05-02 18:00:50Z]: 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: 1bd228ca-7456-4289-b870-8dedd6944200 Correlation ID: d6d9c59a-64b4-44ad-805f-248288762304 Timestamp: 2026-05-02 18:00:50Z - Correlation ID: d6d9c59a-64b4-44ad-805f-248288762304 - Trace ID: 1bd228ca-7456-4289-b870-8dedd6944200
Error getting the secret: invalid_client: 7000222 - [2026-05-02 18:00:50Z]: 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: da4bb057-85e1-4a35-897a-9bc00aa73800 Correlation ID: b25f0902-cb9b-4aeb-95af-463f5a8429df Timestamp: 2026-05-02 18:00:50Z - Correlation ID: b25f0902-cb9b-4aeb-95af-463f5a8429df - Trace ID: da4bb057-85e1-4a35-897a-9bc00aa73800
Error getting the secret: invalid_client: 7000222 - [2026-05-02 18:00:50Z]: 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: 3a962804-00c3-4092-9be2-944096d93e00 Correlation ID: 6472dfe6-91a4-4453-9ed9-b226a3529a17 Timestamp: 2026-05-02 18:00:50Z - Correlation ID: 6472dfe6-91a4-4453-9ed9-b226a3529a17 - Trace ID: 3a962804-00c3-4092-9be2-944096d93e00
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)