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-10 15:42: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: 7f905d22-1dce-4459-9aa0-29d3e2976500 Correlation ID: d02cddc6-0175-4c2f-ad3a-7347a5289085 Timestamp: 2026-04-10 15:42:48Z - Correlation ID: d02cddc6-0175-4c2f-ad3a-7347a5289085 - Trace ID: 7f905d22-1dce-4459-9aa0-29d3e2976500
(node:1836) [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-10 15:42: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: 85aced89-f861-49d6-ad97-c12233256e00 Correlation ID: 97af6488-d5fc-4643-9fa5-d4fd18417d90 Timestamp: 2026-04-10 15:42:48Z - Correlation ID: 97af6488-d5fc-4643-9fa5-d4fd18417d90 - Trace ID: 85aced89-f861-49d6-ad97-c12233256e00
Error getting the secret: invalid_client: 7000222 - [2026-04-10 15:42: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: 8af706be-7392-41b8-9446-4d36cc116e00 Correlation ID: 822944da-530a-4890-9c40-88fac9cf5367 Timestamp: 2026-04-10 15:42:49Z - Correlation ID: 822944da-530a-4890-9c40-88fac9cf5367 - Trace ID: 8af706be-7392-41b8-9446-4d36cc116e00
Error getting the secret: invalid_client: 7000222 - [2026-04-10 15:42: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: 55a78b75-0338-4fc7-8743-5e882f565900 Correlation ID: 74d2fcb8-881f-4901-81f6-889eae1c96e7 Timestamp: 2026-04-10 15:42:49Z - Correlation ID: 74d2fcb8-881f-4901-81f6-889eae1c96e7 - Trace ID: 55a78b75-0338-4fc7-8743-5e882f565900
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)