Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java net SocketTimeoutException in Karate

Tags:

karate

There are two scenarios in a single feature file, scenario 1 executes without any issues but getting the below error while executing scenario 2

ERROR com.intuit.karate - **java.net.SocketTimeoutException**: Read timed out, http call failed after 31237 milliseconds for URL: projectURL
com.intuit.karate.exception.KarateException: javascript function call failed:
java.net.SocketTimeoutException: Read timed out
like image 824
AutomationTester Avatar asked Mar 13 '26 04:03

AutomationTester


1 Answers

Try increasing the timeouts: https://github.com/intuit/karate#configure

* configure readTimeout = 10000
like image 104
Peter Thomas Avatar answered Mar 15 '26 05:03

Peter Thomas