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-19 10:53:14Z]: 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: f49a062d-960c-4801-b7ea-c811ef622f00 Correlation ID: 492a556d-a5e2-40c0-b7bd-6688ae79cfe3 Timestamp: 2026-04-19 10:53:14Z - Correlation ID: 492a556d-a5e2-40c0-b7bd-6688ae79cfe3 - Trace ID: f49a062d-960c-4801-b7ea-c811ef622f00
(node:1312) [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-19 10:53: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: 9d8a1360-4ba9-4ecc-8d31-aa51288e2f00 Correlation ID: dd4c13fe-c426-401b-a724-0e47531c1279 Timestamp: 2026-04-19 10:53:16Z - Correlation ID: dd4c13fe-c426-401b-a724-0e47531c1279 - Trace ID: 9d8a1360-4ba9-4ecc-8d31-aa51288e2f00
Error getting the secret: invalid_client: 7000222 - [2026-04-19 10:53: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: 6baa504a-276e-4cdd-a647-f78a492e2900 Correlation ID: 1f02ee7c-6808-4d59-b974-e3cdabdee9fa Timestamp: 2026-04-19 10:53:16Z - Correlation ID: 1f02ee7c-6808-4d59-b974-e3cdabdee9fa - Trace ID: 6baa504a-276e-4cdd-a647-f78a492e2900
Error getting the secret: invalid_client: 7000222 - [2026-04-19 10:53:17Z]: 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: 418c9299-6ee5-4be0-8020-4d5881383000 Correlation ID: a721dcce-070e-4522-9d70-aea8a56f8cc1 Timestamp: 2026-04-19 10:53:17Z - Correlation ID: a721dcce-070e-4522-9d70-aea8a56f8cc1 - Trace ID: 418c9299-6ee5-4be0-8020-4d5881383000
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)