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-22 15:34:47Z]: 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: 3c14693e-a3c2-4dc3-a155-5435aec21600 Correlation ID: d32f24f7-1400-4464-a1af-d7c453d6b2d0 Timestamp: 2026-04-22 15:34:47Z - Correlation ID: d32f24f7-1400-4464-a1af-d7c453d6b2d0 - Trace ID: 3c14693e-a3c2-4dc3-a155-5435aec21600
(node:1232) [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-22 15:34:47Z]: 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: 152c614d-5b76-47a1-b0b0-0513a1846000 Correlation ID: 80ea3f4b-4ab7-46d8-bb27-4e22d4d0743c Timestamp: 2026-04-22 15:34:47Z - Correlation ID: 80ea3f4b-4ab7-46d8-bb27-4e22d4d0743c - Trace ID: 152c614d-5b76-47a1-b0b0-0513a1846000
Error getting the secret: invalid_client: 7000222 - [2026-04-22 15:34:47Z]: 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: bd018b52-8b3d-4923-9b8e-ae5940811b00 Correlation ID: 0a118e81-86ff-48ae-8502-d3489beca770 Timestamp: 2026-04-22 15:34:47Z - Correlation ID: 0a118e81-86ff-48ae-8502-d3489beca770 - Trace ID: bd018b52-8b3d-4923-9b8e-ae5940811b00
Error getting the secret: invalid_client: 7000222 - [2026-04-22 15:34:48Z]: 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: 12c83467-a985-4d55-8c9b-8f34e5411400 Correlation ID: 744050b0-11fe-4af0-b4d9-ac456852c6f2 Timestamp: 2026-04-22 15:34:48Z - Correlation ID: 744050b0-11fe-4af0-b4d9-ac456852c6f2 - Trace ID: 12c83467-a985-4d55-8c9b-8f34e5411400
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)