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-26 12:35:46Z]: 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: 0ec2ca04-9e2c-45d2-a0e9-39115a441f00 Correlation ID: 30bd3160-ec5b-4cf4-a4fc-d5c0522d7328 Timestamp: 2026-04-26 12:35:46Z - Correlation ID: 30bd3160-ec5b-4cf4-a4fc-d5c0522d7328 - Trace ID: 0ec2ca04-9e2c-45d2-a0e9-39115a441f00
(node:3780) [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-26 12:35:46Z]: 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: 61cedc08-2b73-4df8-b626-25e1a9121400 Correlation ID: 02be3979-cc72-4b22-b3dd-d6721a779b24 Timestamp: 2026-04-26 12:35:46Z - Correlation ID: 02be3979-cc72-4b22-b3dd-d6721a779b24 - Trace ID: 61cedc08-2b73-4df8-b626-25e1a9121400
Error getting the secret: invalid_client: 7000222 - [2026-04-26 12:35:46Z]: 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: de079251-bb73-4249-b901-1ba24fde4c00 Correlation ID: d6a5fd1b-582b-4c43-ab16-9cba4f1213e0 Timestamp: 2026-04-26 12:35:46Z - Correlation ID: d6a5fd1b-582b-4c43-ab16-9cba4f1213e0 - Trace ID: de079251-bb73-4249-b901-1ba24fde4c00
Error getting the secret: invalid_client: 7000222 - [2026-04-26 12:35:46Z]: 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: 7d8e6aa1-6e8c-45c9-8b35-090dcac92800 Correlation ID: 091c5649-abbe-478e-be64-252a9a3b0fec Timestamp: 2026-04-26 12:35:46Z - Correlation ID: 091c5649-abbe-478e-be64-252a9a3b0fec - Trace ID: 7d8e6aa1-6e8c-45c9-8b35-090dcac92800
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)