Guidewire Claimcenter OOTB connector errors out

I am configuring Guidewire claimcenter connector with base url, token user, and client credentials grant. The test connection fails. The request works from Postman. I tried to create a HTTP request in a workflow with OAUTH2 client credentials. The workflow HTTP request works fine. But the OOTB connector test connection fails.

The url works with postman.
Also the same credential works for the url in the http action of workflow.

This errors out with the SAAS connector but works with the non-SAAS connector. The non-SAAS connector works fine.