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-10 03:35:27Z]: 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: c585df6b-36a0-4883-b438-77ed9b5b1300 Correlation ID: 0d2196a5-1647-44fa-9e63-ad1c80a17928 Timestamp: 2026-04-10 03:35:27Z - Correlation ID: 0d2196a5-1647-44fa-9e63-ad1c80a17928 - Trace ID: c585df6b-36a0-4883-b438-77ed9b5b1300
(node:5828) [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-10 03:35:27Z]: 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: 194d1a33-ba7f-4209-885e-4a8eb7140800 Correlation ID: c9f5fa80-a80d-4771-8db0-701f98d0f6be Timestamp: 2026-04-10 03:35:27Z - Correlation ID: c9f5fa80-a80d-4771-8db0-701f98d0f6be - Trace ID: 194d1a33-ba7f-4209-885e-4a8eb7140800
Error getting the secret: invalid_client: 7000222 - [2026-04-10 03:35:27Z]: 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: 194d1a33-ba7f-4209-885e-4a8ec0140800 Correlation ID: 27bff3b7-3d41-491e-9912-0e96a0784ca5 Timestamp: 2026-04-10 03:35:27Z - Correlation ID: 27bff3b7-3d41-491e-9912-0e96a0784ca5 - Trace ID: 194d1a33-ba7f-4209-885e-4a8ec0140800
Error getting the secret: invalid_client: 7000222 - [2026-04-10 03:35:28Z]: 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: b9bda134-281e-4274-a763-89af53506900 Correlation ID: 3b604795-31ba-4697-9d64-964cafc52cba Timestamp: 2026-04-10 03:35:28Z - Correlation ID: 3b604795-31ba-4697-9d64-964cafc52cba - Trace ID: b9bda134-281e-4274-a763-89af53506900
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)