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-01 03:08: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: f0a8e3f7-badb-43c6-8587-4e6b42e94800 Correlation ID: 692d0f04-c500-41c9-9581-2be872be388c Timestamp: 2026-04-01 03:08:25Z - Correlation ID: 692d0f04-c500-41c9-9581-2be872be388c - Trace ID: f0a8e3f7-badb-43c6-8587-4e6b42e94800
(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-01 03:08: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: 8d257744-93f3-4eb8-bb99-94f3f2e04800 Correlation ID: cc940392-b67a-4b87-89a1-c186afc8bde4 Timestamp: 2026-04-01 03:08:25Z - Correlation ID: cc940392-b67a-4b87-89a1-c186afc8bde4 - Trace ID: 8d257744-93f3-4eb8-bb99-94f3f2e04800
Error getting the secret: invalid_client: 7000222 - [2026-04-01 03:08: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: da498e28-0864-40fd-8da1-1629070f5000 Correlation ID: 5397452b-9ad2-4d93-a803-208d2a2db77d Timestamp: 2026-04-01 03:08:25Z - Correlation ID: 5397452b-9ad2-4d93-a803-208d2a2db77d - Trace ID: da498e28-0864-40fd-8da1-1629070f5000
Error getting the secret: invalid_client: 7000222 - [2026-04-01 03:08:26Z]: 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: f707680d-d836-4f2b-9b91-3ec78acc1b00 Correlation ID: b9cdcfc4-3c75-4f41-9182-b630eaa5a9da Timestamp: 2026-04-01 03:08:26Z - Correlation ID: b9cdcfc4-3c75-4f41-9182-b630eaa5a9da - Trace ID: f707680d-d836-4f2b-9b91-3ec78acc1b00
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)