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-21 03:29:51Z]: 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: 72882c0d-6dac-4f44-9ba2-846d6b121c00 Correlation ID: 5c179b8c-6a5e-4ebe-8b89-28a084261fcc Timestamp: 2026-04-21 03:29:51Z - Correlation ID: 5c179b8c-6a5e-4ebe-8b89-28a084261fcc - Trace ID: 72882c0d-6dac-4f44-9ba2-846d6b121c00
(node:3548) [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-21 03:29:52Z]: 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: d7aa0c56-40ca-4d98-9321-0fa112961c00 Correlation ID: 23b97e43-92d6-4192-9487-2d16d780c5ed Timestamp: 2026-04-21 03:29:52Z - Correlation ID: 23b97e43-92d6-4192-9487-2d16d780c5ed - Trace ID: d7aa0c56-40ca-4d98-9321-0fa112961c00
Error getting the secret: invalid_client: 7000222 - [2026-04-21 03:29:52Z]: 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: f66769bf-b15e-4bb9-b5c4-ff34694d2100 Correlation ID: be17f697-eff4-4fed-94fc-c21277ea87be Timestamp: 2026-04-21 03:29:52Z - Correlation ID: be17f697-eff4-4fed-94fc-c21277ea87be - Trace ID: f66769bf-b15e-4bb9-b5c4-ff34694d2100
Error getting the secret: invalid_client: 7000222 - [2026-04-21 03:29:52Z]: 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: fa0a8fbb-9500-4e4d-a459-fc2039521f00 Correlation ID: b9caed73-63bc-4a11-ac8e-71b4cb5cef1d Timestamp: 2026-04-21 03:29:52Z - Correlation ID: b9caed73-63bc-4a11-ac8e-71b4cb5cef1d - Trace ID: fa0a8fbb-9500-4e4d-a459-fc2039521f00
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)