ResourceAccessException: I/O 请求 POST 错误.. 读取超时错误
ResourceAccessException: I/O error on POST request for .. read timed out ERROR
当我调用其余端点(其余模板 http 客户端)“myservice..com/rest/api/”时,我有时会收到以下错误。此错误的原因可能是什么?这是客户端还是服务器错误?
org.springframework.web.client.ResourceAccessException: I/O error on POST request for "myservice..com/rest/api/": read timed out;
exception is java.net.SocketTimeoutException: read timed out
嗯,例外是声明性的。根据 Java API 描述,该异常表示套接字读取或接受超时已发生。简而言之,存在与您的代码无关的网络连接问题。
您可能首先想弄清楚的几个问题:
- 服务
myservice..com/rest/api/
启动了吗?你能看到吗computer/host?
- 你能给它打一个
status
端点来检查它是否还活着吗?
- 您可以向 API
GET
、DELETE
发出不同的 HTTP 请求吗?
- 如果您使用 cURL 或 Postman 查询端点会怎样?
当我调用其余端点(其余模板 http 客户端)“myservice..com/rest/api/”时,我有时会收到以下错误。此错误的原因可能是什么?这是客户端还是服务器错误?
org.springframework.web.client.ResourceAccessException: I/O error on POST request for "myservice..com/rest/api/": read timed out;
exception is java.net.SocketTimeoutException: read timed out
嗯,例外是声明性的。根据 Java API 描述,该异常表示套接字读取或接受超时已发生。简而言之,存在与您的代码无关的网络连接问题。
您可能首先想弄清楚的几个问题:
- 服务
myservice..com/rest/api/
启动了吗?你能看到吗computer/host? - 你能给它打一个
status
端点来检查它是否还活着吗? - 您可以向 API
GET
、DELETE
发出不同的 HTTP 请求吗? - 如果您使用 cURL 或 Postman 查询端点会怎样?