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-16 19:18:49Z]: 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: 824cb963-e74a-4a56-827e-e904e0eb0900 Correlation ID: 5ea1f1d3-1e0e-4a96-888c-17de2e43acd9 Timestamp: 2026-05-16 19:18:49Z - Correlation ID: 5ea1f1d3-1e0e-4a96-888c-17de2e43acd9 - Trace ID: 824cb963-e74a-4a56-827e-e904e0eb0900
(node:4092) [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-16 19:18:49Z]: 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: 824cb963-e74a-4a56-827e-e904e7eb0900 Correlation ID: a01b7c2a-2188-4496-9ecf-9185b1f2f4e0 Timestamp: 2026-05-16 19:18:49Z - Correlation ID: a01b7c2a-2188-4496-9ecf-9185b1f2f4e0 - Trace ID: 824cb963-e74a-4a56-827e-e904e7eb0900
Error getting the secret: invalid_client: 7000222 - [2026-05-16 19:18:50Z]: 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: 9a2d311f-82f2-433e-bbd9-814e4e5c1b00 Correlation ID: c593d4ab-b6f4-47d9-a4c3-52c0ac0d31af Timestamp: 2026-05-16 19:18:50Z - Correlation ID: c593d4ab-b6f4-47d9-a4c3-52c0ac0d31af - Trace ID: 9a2d311f-82f2-433e-bbd9-814e4e5c1b00
Error getting the secret: invalid_client: 7000222 - [2026-05-16 19:18:50Z]: 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: 64c5c3c7-5cf1-447a-a3d7-a36bac460100 Correlation ID: 7e0043b4-5295-42fb-b741-86addeb380c6 Timestamp: 2026-05-16 19:18:50Z - Correlation ID: 7e0043b4-5295-42fb-b741-86addeb380c6 - Trace ID: 64c5c3c7-5cf1-447a-a3d7-a36bac460100
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)