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-15 03:45:02Z]: 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: 46bca4e5-427d-4d24-824b-614743082a00 Correlation ID: eb5ec265-9378-4b34-96bd-410c56fc8169 Timestamp: 2026-05-15 03:45:02Z - Correlation ID: eb5ec265-9378-4b34-96bd-410c56fc8169 - Trace ID: 46bca4e5-427d-4d24-824b-614743082a00
(node:2148) [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-15 03:45:03Z]: 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: f509272e-50fc-422f-81fe-ab59ff494f00 Correlation ID: 0e402f5d-915e-4240-b579-8da1f1486c09 Timestamp: 2026-05-15 03:45:03Z - Correlation ID: 0e402f5d-915e-4240-b579-8da1f1486c09 - Trace ID: f509272e-50fc-422f-81fe-ab59ff494f00
Error getting the secret: invalid_client: 7000222 - [2026-05-15 03:45:03Z]: 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: f074986e-8edd-4f8e-bc77-6f45337f0200 Correlation ID: 45f54c24-a6bc-46ce-a0f2-105feb20629b Timestamp: 2026-05-15 03:45:03Z - Correlation ID: 45f54c24-a6bc-46ce-a0f2-105feb20629b - Trace ID: f074986e-8edd-4f8e-bc77-6f45337f0200
Error getting the secret: invalid_client: 7000222 - [2026-05-15 03:45:03Z]: 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: dd99bf67-c040-42f1-ab61-3b9765941600 Correlation ID: 4c2a36c3-6bcf-4e3f-a889-656ad76231d5 Timestamp: 2026-05-15 03:45:03Z - Correlation ID: 4c2a36c3-6bcf-4e3f-a889-656ad76231d5 - Trace ID: dd99bf67-c040-42f1-ab61-3b9765941600
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)