Please I stuck, when I try to post a request I keep getting this warning message
java.net.SocketException: Address family not supported by protocol family: connect
The post request works okay in “Postman”
There can be many reasons for your issue. They may be:
Anti-virus blocking the connection. If you have an anti-virus running on that computer, try disabling it for a test.
Java is trying to use IPv6 to connect. Please put the argument
-Djava.net.preferIPv4Stack=true in the file katalon.ini in Katalon Studio installation package.
I agree about adding that argument in the katalon.ini file:
I also had to add a similar argument in the com.kms.katalon.execution.properties file (project settings):
In my case both changes were necessary for API tests to work with a VPN tunnel which carries only IPv4 traffic (not IPv6).