在空手道中运行功能文件时出现Java.net.SocketTimeoutException [英] Java.net.SocketTimeoutException when running a feature file in Karate

查看:127
本文介绍了在空手道中运行功能文件时出现Java.net.SocketTimeoutException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

运行功能文件时,出现此错误.

When running my feature file i get this error.

java.lang.RuntimeException: java.net.SocketTimeoutException: Read timed out

我一直试图添加readTimeout,因为我一直都遇到相同的异常.

I have tried to add a readTimeout by i get the same exception all the time.

* configure readTimeout = 10000

你们有什么想法吗? 预先感谢.

Do you guys have any ideas ? Thanks in advance.

推荐答案

我已经通过在pom.xml中用karate-apache切换karate-jersey来解决了这个问题.

I have solved the problem by switching karate-jersey with karate-apache in the pom.xml .

这篇关于在空手道中运行功能文件时出现Java.net.SocketTimeoutException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆