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-05-14 07:02:00Z]: 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: 2c619c42-d1ab-4d51-a0cf-c36e336a2100 Correlation ID: dfcb371c-6290-4478-aa3c-a08c09a300d8 Timestamp: 2026-05-14 07:02:00Z - Correlation ID: dfcb371c-6290-4478-aa3c-a08c09a300d8 - Trace ID: 2c619c42-d1ab-4d51-a0cf-c36e336a2100
(node:4472) [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-05-14 07:02:00Z]: 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: ccd27393-f6f5-48f7-bddf-436caf230a00 Correlation ID: a240812b-e7cb-4ba6-8b81-d5972b4eeff0 Timestamp: 2026-05-14 07:02:00Z - Correlation ID: a240812b-e7cb-4ba6-8b81-d5972b4eeff0 - Trace ID: ccd27393-f6f5-48f7-bddf-436caf230a00
Error getting the secret: invalid_client: 7000222 - [2026-05-14 07:02:00Z]: 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: 5add4c15-4448-4749-aff8-2ee264642800 Correlation ID: d7ac1e24-fbcb-4706-b4c6-aa786614aa7e Timestamp: 2026-05-14 07:02:00Z - Correlation ID: d7ac1e24-fbcb-4706-b4c6-aa786614aa7e - Trace ID: 5add4c15-4448-4749-aff8-2ee264642800
Error getting the secret: invalid_client: 7000222 - [2026-05-14 07:02:01Z]: 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: bfb759de-8d1e-49ce-8be7-adf1e6192400 Correlation ID: e3d2ac18-972b-403e-b79e-4c81ec6f2ca1 Timestamp: 2026-05-14 07:02:01Z - Correlation ID: e3d2ac18-972b-403e-b79e-4c81ec6f2ca1 - Trace ID: bfb759de-8d1e-49ce-8be7-adf1e6192400
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)