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 14:19:37Z]: 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: c49c51ba-d6e5-423d-8256-880651bf2e00 Correlation ID: bb7e51fc-3261-474e-96d4-97474e667e08 Timestamp: 2026-02-28 14:19:37Z - Correlation ID: bb7e51fc-3261-474e-96d4-97474e667e08 - Trace ID: c49c51ba-d6e5-423d-8256-880651bf2e00
(node:3416) [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 14:19:37Z]: 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: f154c128-8fd6-4113-b0f5-2e7e86d12b00 Correlation ID: afb9171d-6cda-4ed8-bab4-5646383392ac Timestamp: 2026-02-28 14:19:37Z - Correlation ID: afb9171d-6cda-4ed8-bab4-5646383392ac - Trace ID: f154c128-8fd6-4113-b0f5-2e7e86d12b00
Error getting the secret: invalid_client: 7000222 - [2026-02-28 14:19:37Z]: 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: e1d54c4e-42a1-4a3f-931b-400068433d00 Correlation ID: 3d8385b2-2687-4117-a872-90123238d989 Timestamp: 2026-02-28 14:19:37Z - Correlation ID: 3d8385b2-2687-4117-a872-90123238d989 - Trace ID: e1d54c4e-42a1-4a3f-931b-400068433d00
Error getting the secret: invalid_client: 7000222 - [2026-02-28 14:19:38Z]: 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: 271a1f42-09e7-422d-8663-8122a11c3200 Correlation ID: eab023c3-3bd2-4295-bd01-bf24877297c7 Timestamp: 2026-02-28 14:19:38Z - Correlation ID: eab023c3-3bd2-4295-bd01-bf24877297c7 - Trace ID: 271a1f42-09e7-422d-8663-8122a11c3200
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)