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-12 00:36:53Z]: 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: 77f18098-6dba-4280-b801-561954c01500 Correlation ID: ad17b995-cdab-4883-b64d-bc73381d0ff1 Timestamp: 2026-04-12 00:36:53Z - Correlation ID: ad17b995-cdab-4883-b64d-bc73381d0ff1 - Trace ID: 77f18098-6dba-4280-b801-561954c01500
(node:4176) [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-12 00:36:54Z]: 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: 77f18098-6dba-4280-b801-561963c01500 Correlation ID: cdcbcb72-9d77-495d-8a03-325fd26567ec Timestamp: 2026-04-12 00:36:54Z - Correlation ID: cdcbcb72-9d77-495d-8a03-325fd26567ec - Trace ID: 77f18098-6dba-4280-b801-561963c01500
Error getting the secret: invalid_client: 7000222 - [2026-04-12 00:36:54Z]: 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: b751b045-39d0-4a11-9d2e-8a270b4f1700 Correlation ID: 197e9712-c3e6-42ac-89e2-e3cc9f689fdf Timestamp: 2026-04-12 00:36:54Z - Correlation ID: 197e9712-c3e6-42ac-89e2-e3cc9f689fdf - Trace ID: b751b045-39d0-4a11-9d2e-8a270b4f1700
Error getting the secret: invalid_client: 7000222 - [2026-04-12 00:36:55Z]: 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: bfdae6e0-ad09-4fbc-870f-31e8a7a70200 Correlation ID: 5174227c-25fa-4d2b-9512-da914372ac6a Timestamp: 2026-04-12 00:36:55Z - Correlation ID: 5174227c-25fa-4d2b-9512-da914372ac6a - Trace ID: bfdae6e0-ad09-4fbc-870f-31e8a7a70200
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)