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-27 01:20: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: 5205aad9-3a64-430e-9fab-f0b910341f00 Correlation ID: 891b0204-c1fc-4c0e-b214-bb20a495d620 Timestamp: 2026-04-27 01:20:50Z - Correlation ID: 891b0204-c1fc-4c0e-b214-bb20a495d620 - Trace ID: 5205aad9-3a64-430e-9fab-f0b910341f00
(node:2508) [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-27 01:20: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: 49d52296-a560-47b1-9a72-c09582592d00 Correlation ID: 67f970f0-af90-42e0-9c25-a3a8348f32db Timestamp: 2026-04-27 01:20:50Z - Correlation ID: 67f970f0-af90-42e0-9c25-a3a8348f32db - Trace ID: 49d52296-a560-47b1-9a72-c09582592d00
Error getting the secret: invalid_client: 7000222 - [2026-04-27 01:20: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: 5205aad9-3a64-430e-9fab-f0b911341f00 Correlation ID: e84a6e19-3eee-4ffd-840c-5b52e0f00b5c Timestamp: 2026-04-27 01:20:50Z - Correlation ID: e84a6e19-3eee-4ffd-840c-5b52e0f00b5c - Trace ID: 5205aad9-3a64-430e-9fab-f0b911341f00
Error getting the secret: invalid_client: 7000222 - [2026-04-27 01:20: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: 08a500d6-dc4f-4e4b-bc28-a556cf072800 Correlation ID: 47b9b173-5655-4e55-9a25-0d9d417dc013 Timestamp: 2026-04-27 01:20:50Z - Correlation ID: 47b9b173-5655-4e55-9a25-0d9d417dc013 - Trace ID: 08a500d6-dc4f-4e4b-bc28-a556cf072800
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)