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 - [2025-11-19 12:56:33Z]: 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: d4a64197-7a2c-453f-9946-6c2f79f13f00 Correlation ID: ec010cad-ebec-449f-ac8a-b61291525f39 Timestamp: 2025-11-19 12:56:33Z - Correlation ID: ec010cad-ebec-449f-ac8a-b61291525f39 - Trace ID: d4a64197-7a2c-453f-9946-6c2f79f13f00
(node:2612) [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 - [2025-11-19 12:56:33Z]: 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: ce57fb40-cb83-4c82-a988-f9db8ecd7000 Correlation ID: 7d6e967e-af88-48d7-b738-50548ccc05ec Timestamp: 2025-11-19 12:56:33Z - Correlation ID: 7d6e967e-af88-48d7-b738-50548ccc05ec - Trace ID: ce57fb40-cb83-4c82-a988-f9db8ecd7000
Error getting the secret: invalid_client: 7000222 - [2025-11-19 12:56:34Z]: 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: d13d88b6-068c-443d-8d81-fe0dec526100 Correlation ID: 0c2875b0-bc96-4f7b-a59b-be19ab3adf0e Timestamp: 2025-11-19 12:56:34Z - Correlation ID: 0c2875b0-bc96-4f7b-a59b-be19ab3adf0e - Trace ID: d13d88b6-068c-443d-8d81-fe0dec526100
Error getting the secret: invalid_client: 7000222 - [2025-11-19 12:56:34Z]: 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: 0ca4cb1c-44f9-46ca-8d0b-5c5f214b3a00 Correlation ID: be20a313-5c49-42dd-864d-7dfa45f35445 Timestamp: 2025-11-19 12:56:34Z - Correlation ID: be20a313-5c49-42dd-864d-7dfa45f35445 - Trace ID: 0ca4cb1c-44f9-46ca-8d0b-5c5f214b3a00
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)