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-22 21:11:59Z]: 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: 33e333d5-50b4-4c6e-8855-1ee021181d00 Correlation ID: f614a5e7-2620-4649-89b1-6512cec84d4a Timestamp: 2026-04-22 21:11:59Z - Correlation ID: f614a5e7-2620-4649-89b1-6512cec84d4a - Trace ID: 33e333d5-50b4-4c6e-8855-1ee021181d00
(node:6060) [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-22 21:12:00Z]: 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: e28746f3-716c-4e85-90da-54c4b4385800 Correlation ID: f786d5c2-3228-4082-8bcb-700d8aff0635 Timestamp: 2026-04-22 21:12:00Z - Correlation ID: f786d5c2-3228-4082-8bcb-700d8aff0635 - Trace ID: e28746f3-716c-4e85-90da-54c4b4385800
Error getting the secret: invalid_client: 7000222 - [2026-04-22 21:12:00Z]: 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: 8f798e48-695e-4874-9b4b-867b2c642000 Correlation ID: 7244afd9-4dcc-47cf-a882-7e0d66edde69 Timestamp: 2026-04-22 21:12:00Z - Correlation ID: 7244afd9-4dcc-47cf-a882-7e0d66edde69 - Trace ID: 8f798e48-695e-4874-9b4b-867b2c642000
Error getting the secret: invalid_client: 7000222 - [2026-04-22 21:12:00Z]: 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: 6bce8a00-ba01-4464-92ca-eb3b059f1f00 Correlation ID: d7f36425-e1d7-4c62-8cc1-913d36cf1942 Timestamp: 2026-04-22 21:12:00Z - Correlation ID: d7f36425-e1d7-4c62-8cc1-913d36cf1942 - Trace ID: 6bce8a00-ba01-4464-92ca-eb3b059f1f00
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)