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:29:16Z]: 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: 8fdf7264-1ae4-4613-a3b2-a30604307100 Correlation ID: 44eebd83-850b-40a4-b846-2da29a2bd538 Timestamp: 2026-03-02 12:29:16Z - Correlation ID: 44eebd83-850b-40a4-b846-2da29a2bd538 - Trace ID: 8fdf7264-1ae4-4613-a3b2-a30604307100
(node:3144) [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:29:17Z]: 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: 1fc394e3-1d67-4d13-9b4c-14d7e6a80100 Correlation ID: 2a3db277-149f-4882-a890-d32016f22fa7 Timestamp: 2026-03-02 12:29:17Z - Correlation ID: 2a3db277-149f-4882-a890-d32016f22fa7 - Trace ID: 1fc394e3-1d67-4d13-9b4c-14d7e6a80100
Error getting the secret: invalid_client: 7000222 - [2026-03-02 12:29:17Z]: 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: a903c17d-3769-4cb9-aaca-2b99a6660200 Correlation ID: d22169d5-2d27-477e-9718-e795729a45a7 Timestamp: 2026-03-02 12:29:17Z - Correlation ID: d22169d5-2d27-477e-9718-e795729a45a7 - Trace ID: a903c17d-3769-4cb9-aaca-2b99a6660200
Error getting the secret: invalid_client: 7000222 - [2026-03-02 12:29:17Z]: 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: 7423d096-25ab-4488-b119-5c463b025f00 Correlation ID: 81785d47-e3ad-475e-98d3-96115c3c4292 Timestamp: 2026-03-02 12:29:17Z - Correlation ID: 81785d47-e3ad-475e-98d3-96115c3c4292 - Trace ID: 7423d096-25ab-4488-b119-5c463b025f00
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)