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-21 15:42:41Z]: 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: 4f30b0f9-51b5-4e3a-9f4e-56cf825f2f00 Correlation ID: 732713b5-a7da-4fc4-8559-947f2c500824 Timestamp: 2026-04-21 15:42:41Z - Correlation ID: 732713b5-a7da-4fc4-8559-947f2c500824 - Trace ID: 4f30b0f9-51b5-4e3a-9f4e-56cf825f2f00
(node:6088) [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-21 15:42:44Z]: 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: 4b650c21-a466-4209-9add-22d41ab91a00 Correlation ID: dc2dc713-bfed-43ea-b59c-79cd3fcdad06 Timestamp: 2026-04-21 15:42:44Z - Correlation ID: dc2dc713-bfed-43ea-b59c-79cd3fcdad06 - Trace ID: 4b650c21-a466-4209-9add-22d41ab91a00
Error getting the secret: invalid_client: 7000222 - [2026-04-21 15:42:44Z]: 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: 1fa8fc86-d76c-4adc-956d-df36c6373000 Correlation ID: fbd00256-bdbe-4249-8d47-16e9ea33231f Timestamp: 2026-04-21 15:42:44Z - Correlation ID: fbd00256-bdbe-4249-8d47-16e9ea33231f - Trace ID: 1fa8fc86-d76c-4adc-956d-df36c6373000
Error getting the secret: invalid_client: 7000222 - [2026-04-21 15:42:45Z]: 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: 6869b957-ce1a-43a6-b0a0-ab3afd4e0300 Correlation ID: ea32ddbc-7f83-4eea-baef-8e8ad073db73 Timestamp: 2026-04-21 15:42:45Z - Correlation ID: ea32ddbc-7f83-4eea-baef-8e8ad073db73 - Trace ID: 6869b957-ce1a-43a6-b0a0-ab3afd4e0300
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)