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-03-05 02:10:15Z]: 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: 67464270-11c3-45a8-88dd-b29633f22500 Correlation ID: 9a9713a1-e2a4-4f18-b505-9eaec92304f1 Timestamp: 2026-03-05 02:10:15Z - Correlation ID: 9a9713a1-e2a4-4f18-b505-9eaec92304f1 - Trace ID: 67464270-11c3-45a8-88dd-b29633f22500
(node:636) [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-03-05 02:10:16Z]: 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: ec7a4302-1c7c-437d-a50b-231229ba4800 Correlation ID: 6bce5cfd-3c55-4e02-b4ea-153370278176 Timestamp: 2026-03-05 02:10:16Z - Correlation ID: 6bce5cfd-3c55-4e02-b4ea-153370278176 - Trace ID: ec7a4302-1c7c-437d-a50b-231229ba4800
Error getting the secret: invalid_client: 7000222 - [2026-03-05 02:10:16Z]: 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: f06f733f-e0ac-4ece-8534-bb6842447000 Correlation ID: 9fdc9c54-03f0-456a-8df4-c047f2c83bdd Timestamp: 2026-03-05 02:10:16Z - Correlation ID: 9fdc9c54-03f0-456a-8df4-c047f2c83bdd - Trace ID: f06f733f-e0ac-4ece-8534-bb6842447000
Error getting the secret: invalid_client: 7000222 - [2026-03-05 02:10:16Z]: 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: 67464270-11c3-45a8-88dd-b2964bf22500 Correlation ID: 2163e008-cf98-41ab-9f56-82e06d708e27 Timestamp: 2026-03-05 02:10:16Z - Correlation ID: 2163e008-cf98-41ab-9f56-82e06d708e27 - Trace ID: 67464270-11c3-45a8-88dd-b2964bf22500
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)