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-01-17 01:47:37Z]: 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: 22164e1e-d53b-4bc1-a37f-90771d300300 Correlation ID: a153e0fa-c28d-4f96-9355-ae57ddaa6e7d Timestamp: 2026-01-17 01:47:37Z - Correlation ID: a153e0fa-c28d-4f96-9355-ae57ddaa6e7d - Trace ID: 22164e1e-d53b-4bc1-a37f-90771d300300
(node:1708) [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-01-17 01:47:38Z]: 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: 99594dde-792c-4b9f-bdab-3996f5e52200 Correlation ID: 4a2b1c87-e76f-4562-b9d3-fad75aaf05e9 Timestamp: 2026-01-17 01:47:38Z - Correlation ID: 4a2b1c87-e76f-4562-b9d3-fad75aaf05e9 - Trace ID: 99594dde-792c-4b9f-bdab-3996f5e52200
Error getting the secret: invalid_client: 7000222 - [2026-01-17 01:47:38Z]: 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: 2f514d0b-03e2-4a6a-8822-4e53a61d0800 Correlation ID: 814950f4-8239-4675-9a69-00de5d60bc0f Timestamp: 2026-01-17 01:47:38Z - Correlation ID: 814950f4-8239-4675-9a69-00de5d60bc0f - Trace ID: 2f514d0b-03e2-4a6a-8822-4e53a61d0800
Error getting the secret: invalid_client: 7000222 - [2026-01-17 01:47:38Z]: 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: 298c40f0-22bb-4e67-b158-1ae3b81a0400 Correlation ID: 4e457c72-f987-441b-bd08-abf0099e71c8 Timestamp: 2026-01-17 01:47:38Z - Correlation ID: 4e457c72-f987-441b-bd08-abf0099e71c8 - Trace ID: 298c40f0-22bb-4e67-b158-1ae3b81a0400
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)