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-04 11:10:43Z]: 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: ac2aee15-1393-4c2d-863d-d8ca3f390b00 Correlation ID: 685ca27c-ff4f-43e4-9529-9dd3e9947ef8 Timestamp: 2026-03-04 11:10:43Z - Correlation ID: 685ca27c-ff4f-43e4-9529-9dd3e9947ef8 - Trace ID: ac2aee15-1393-4c2d-863d-d8ca3f390b00
(node:5852) [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-04 11:10:43Z]: 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: 95c5bc64-ccb2-4f4b-9439-1df1acd6a600 Correlation ID: 6516c38e-3602-46bd-a8a5-4251f94d14c6 Timestamp: 2026-03-04 11:10:43Z - Correlation ID: 6516c38e-3602-46bd-a8a5-4251f94d14c6 - Trace ID: 95c5bc64-ccb2-4f4b-9439-1df1acd6a600
Error getting the secret: invalid_client: 7000222 - [2026-03-04 11:10:43Z]: 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: 2a090437-5981-4cd7-93a6-20b7cfcd2100 Correlation ID: d20b8a60-f145-431b-8f66-488a5d44ac0c Timestamp: 2026-03-04 11:10:43Z - Correlation ID: d20b8a60-f145-431b-8f66-488a5d44ac0c - Trace ID: 2a090437-5981-4cd7-93a6-20b7cfcd2100
Error getting the secret: invalid_client: 7000222 - [2026-03-04 11:10:43Z]: 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: 8d8e4c75-36a9-41c4-94d4-25531e59bb00 Correlation ID: 6f625c46-957d-4c8a-9793-b8acbe4cf475 Timestamp: 2026-03-04 11:10:43Z - Correlation ID: 6f625c46-957d-4c8a-9793-b8acbe4cf475 - Trace ID: 8d8e4c75-36a9-41c4-94d4-25531e59bb00
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)