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 02:35:44Z]: 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: 28a3deb8-16ab-41ba-b60c-1748bc442d00 Correlation ID: afdbe340-091b-4ed9-a097-eb08851cb506 Timestamp: 2026-02-28 02:35:44Z - Correlation ID: afdbe340-091b-4ed9-a097-eb08851cb506 - Trace ID: 28a3deb8-16ab-41ba-b60c-1748bc442d00
(node:4648) [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 02:35:44Z]: 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: 28a3deb8-16ab-41ba-b60c-1748c2442d00 Correlation ID: e2553d93-b61d-48ed-ab3d-6787075ac4cc Timestamp: 2026-02-28 02:35:44Z - Correlation ID: e2553d93-b61d-48ed-ab3d-6787075ac4cc - Trace ID: 28a3deb8-16ab-41ba-b60c-1748c2442d00
Error getting the secret: invalid_client: 7000222 - [2026-02-28 02:35:45Z]: 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: 03a43b51-5ba4-40f2-95ba-b7d1ef614c00 Correlation ID: c333a1d8-da1b-4568-b891-713e29ac0693 Timestamp: 2026-02-28 02:35:45Z - Correlation ID: c333a1d8-da1b-4568-b891-713e29ac0693 - Trace ID: 03a43b51-5ba4-40f2-95ba-b7d1ef614c00
Error getting the secret: invalid_client: 7000222 - [2026-02-28 02:35:45Z]: 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: 52a8abc9-9173-4989-823d-3dc7cb344100 Correlation ID: ae1a3fae-9ebe-4dbd-8afb-e7351ad34e3f Timestamp: 2026-02-28 02:35:45Z - Correlation ID: ae1a3fae-9ebe-4dbd-8afb-e7351ad34e3f - Trace ID: 52a8abc9-9173-4989-823d-3dc7cb344100
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)