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-01 11:05:00Z]: 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: 3406e8a4-0e57-4e85-a84a-214322c91f00 Correlation ID: aa3c94e7-8739-4fff-bb83-377a5827f8e1 Timestamp: 2026-05-01 11:05:00Z - Correlation ID: aa3c94e7-8739-4fff-bb83-377a5827f8e1 - Trace ID: 3406e8a4-0e57-4e85-a84a-214322c91f00
(node:2628) [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-01 11:05:00Z]: 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: b971a7f7-6e3e-4397-ad62-38b29a601f00 Correlation ID: 36146585-919c-4317-a575-d4b817955cba Timestamp: 2026-05-01 11:05:00Z - Correlation ID: 36146585-919c-4317-a575-d4b817955cba - Trace ID: b971a7f7-6e3e-4397-ad62-38b29a601f00
Error getting the secret: invalid_client: 7000222 - [2026-05-01 11:05:00Z]: 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: f5a58974-8cda-4697-bc40-e7abcf1d2300 Correlation ID: ef20426c-445b-4c30-b8b0-b604abedb29b Timestamp: 2026-05-01 11:05:00Z - Correlation ID: ef20426c-445b-4c30-b8b0-b604abedb29b - Trace ID: f5a58974-8cda-4697-bc40-e7abcf1d2300
Error getting the secret: invalid_client: 7000222 - [2026-05-01 11:05:00Z]: 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: 3406e8a4-0e57-4e85-a84a-214332c91f00 Correlation ID: 518cccaa-6c7f-4349-8ba6-2fd5c251164a Timestamp: 2026-05-01 11:05:00Z - Correlation ID: 518cccaa-6c7f-4349-8ba6-2fd5c251164a - Trace ID: 3406e8a4-0e57-4e85-a84a-214332c91f00
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)