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-17 04:27:06Z]: 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: b3a65fbd-276c-4433-8f86-1df5e28b2e00 Correlation ID: a07d4980-53f0-44c1-b389-0db02005eef9 Timestamp: 2025-11-17 04:27:06Z - Correlation ID: a07d4980-53f0-44c1-b389-0db02005eef9 - Trace ID: b3a65fbd-276c-4433-8f86-1df5e28b2e00
(node:3428) [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-17 04:27:06Z]: 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: 94c8b87b-3b87-4e74-b0ef-1b6adf3b4600 Correlation ID: 5e2771c2-2f4c-4047-9462-2e2eb3e4839f Timestamp: 2025-11-17 04:27:06Z - Correlation ID: 5e2771c2-2f4c-4047-9462-2e2eb3e4839f - Trace ID: 94c8b87b-3b87-4e74-b0ef-1b6adf3b4600
Error getting the secret: invalid_client: 7000222 - [2025-11-17 04:27:06Z]: 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: 6586f0ef-bfc5-4dda-b9fb-1fddab6c2100 Correlation ID: 752bd76e-1a65-4e85-a1fa-955771c457ed Timestamp: 2025-11-17 04:27:06Z - Correlation ID: 752bd76e-1a65-4e85-a1fa-955771c457ed - Trace ID: 6586f0ef-bfc5-4dda-b9fb-1fddab6c2100
Error getting the secret: invalid_client: 7000222 - [2025-11-17 04:27:06Z]: 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: 8b64b05f-3ae1-41e8-81b6-aa155ea72b00 Correlation ID: 8682477d-506f-4237-90d7-c2dd9fae159a Timestamp: 2025-11-17 04:27:06Z - Correlation ID: 8682477d-506f-4237-90d7-c2dd9fae159a - Trace ID: 8b64b05f-3ae1-41e8-81b6-aa155ea72b00
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)