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-05-15 15:22:50Z]: 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: 06f6dcee-5422-4f61-a0c0-9d09231b0500 Correlation ID: 593ec492-3b22-4e0b-afcb-bf875b7cd940 Timestamp: 2026-05-15 15:22:50Z - Correlation ID: 593ec492-3b22-4e0b-afcb-bf875b7cd940 - Trace ID: 06f6dcee-5422-4f61-a0c0-9d09231b0500
(node:6484) [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-05-15 15:22:50Z]: 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: b4361bfe-d73c-4e43-a973-58defc3f0900 Correlation ID: 0f8127ec-1048-40ee-8278-719a77586fb7 Timestamp: 2026-05-15 15:22:50Z - Correlation ID: 0f8127ec-1048-40ee-8278-719a77586fb7 - Trace ID: b4361bfe-d73c-4e43-a973-58defc3f0900
Error getting the secret: invalid_client: 7000222 - [2026-05-15 15:22:50Z]: 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: 926d6de9-d88f-409f-b8b7-dd1fd0c80500 Correlation ID: 6e40cff6-ae51-484e-a8ae-01fd3365ae23 Timestamp: 2026-05-15 15:22:50Z - Correlation ID: 6e40cff6-ae51-484e-a8ae-01fd3365ae23 - Trace ID: 926d6de9-d88f-409f-b8b7-dd1fd0c80500
Error getting the secret: invalid_client: 7000222 - [2026-05-15 15:22:50Z]: 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: e623f4d5-8f18-41b7-a509-a4f27c330700 Correlation ID: da6f0e5d-0996-4a3a-a170-1de8b3b8301f Timestamp: 2026-05-15 15:22:50Z - Correlation ID: da6f0e5d-0996-4a3a-a170-1de8b3b8301f - Trace ID: e623f4d5-8f18-41b7-a509-a4f27c330700
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)