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-03 08:45: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: f5c18e13-1643-4ef0-921e-c6c8ebbe1500 Correlation ID: 12ed70bc-de72-45d1-bed3-da990e18e7aa Timestamp: 2026-04-03 08:45:37Z - Correlation ID: 12ed70bc-de72-45d1-bed3-da990e18e7aa - Trace ID: f5c18e13-1643-4ef0-921e-c6c8ebbe1500
(node:5760) [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-03 08:45: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: 5e00c377-de50-4859-98e9-bf4dd66b2e00 Correlation ID: 6a30651b-3795-4635-8188-ce2717941a65 Timestamp: 2026-04-03 08:45:37Z - Correlation ID: 6a30651b-3795-4635-8188-ce2717941a65 - Trace ID: 5e00c377-de50-4859-98e9-bf4dd66b2e00
Error getting the secret: invalid_client: 7000222 - [2026-04-03 08:45: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: c1c6bfbc-3134-41e5-9f51-849cc52b2f00 Correlation ID: b970fea1-9cbd-473c-93b5-c10addc77e03 Timestamp: 2026-04-03 08:45:37Z - Correlation ID: b970fea1-9cbd-473c-93b5-c10addc77e03 - Trace ID: c1c6bfbc-3134-41e5-9f51-849cc52b2f00
Error getting the secret: invalid_client: 7000222 - [2026-04-03 08:45: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: a85983e0-a952-490f-bc94-69dbb8f90100 Correlation ID: b6c00a8f-b6f8-4a61-9b53-936bcf038e1a Timestamp: 2026-04-03 08:45:37Z - Correlation ID: b6c00a8f-b6f8-4a61-9b53-936bcf038e1a - Trace ID: a85983e0-a952-490f-bc94-69dbb8f90100
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)