【发布时间】:2026-02-02 04:15:02
【问题描述】:
我在下面尝试过:
-
通过代码增加连接超时
RestAssuredConfig newConfig = RestAssured.config() .httpClient(HttpClientConfig.httpClientConfig().setParam(CoreConnectionPNames.CONNECTION_TIMEOUT, 12000).setParam(CoreConnectionPNames.SO_TIMEOUT, 12000));
在请求头中添加了用户代理
从本地系统和远程代理手动检查相同的 api 调用- 两者都给出相同的结果。
但是我收到 java.net.SocketTimeoutException: connect timed out while it is working from local system而不是 Teamcity agent execution
请帮忙
【问题讨论】:
标签: selenium teamcity rest-assured