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-01-28 11:48:25Z]: 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: 8c181a66-6abc-455c-bb3c-41a8ba857700 Correlation ID: 4e6aded0-880d-4b99-8e7e-83ac81608b8b Timestamp: 2026-01-28 11:48:25Z - Correlation ID: 4e6aded0-880d-4b99-8e7e-83ac81608b8b - Trace ID: 8c181a66-6abc-455c-bb3c-41a8ba857700
(node:4688) [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-01-28 11:48:25Z]: 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: ac551c5b-e8c8-49ff-9fa0-52fee28b1000 Correlation ID: c91356d6-e2e0-4855-bb93-bf506a8b38c6 Timestamp: 2026-01-28 11:48:25Z - Correlation ID: c91356d6-e2e0-4855-bb93-bf506a8b38c6 - Trace ID: ac551c5b-e8c8-49ff-9fa0-52fee28b1000
Error getting the secret: invalid_client: 7000222 - [2026-01-28 11:48:25Z]: 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: 3e7ec7e1-970b-4991-a6de-07c77da36d00 Correlation ID: 55c944e3-78de-47c2-a8b7-d7f737b88b74 Timestamp: 2026-01-28 11:48:25Z - Correlation ID: 55c944e3-78de-47c2-a8b7-d7f737b88b74 - Trace ID: 3e7ec7e1-970b-4991-a6de-07c77da36d00
Error getting the secret: invalid_client: 7000222 - [2026-01-28 11:48:25Z]: 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: f9411849-7644-411e-9dd2-7bf1ecdf3c00 Correlation ID: c9a563f1-e5a4-48a7-b58d-ef2cd7a13ba4 Timestamp: 2026-01-28 11:48:25Z - Correlation ID: c9a563f1-e5a4-48a7-b58d-ef2cd7a13ba4 - Trace ID: f9411849-7644-411e-9dd2-7bf1ecdf3c00
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)