[英]java.net.ProtocolException: Server redirected too many times
Getting error获取错误
javax.ws.rs.ProcessingException: java.net.ProtocolException: Server redirected too many times (5)
javax.ws.rs.ProcessingException: java.net.ProtocolException: 服务器重定向次数过多 (5)
while executing执行时
javax.ws.rs.core.Response response = client.target("https://someurl")
.request().get(javax.ws.rs.core.Response.class);
It seems that the exception was received after 5 redirection attempts.似乎在 5 次重定向尝试后收到了异常。
Is there some way to configure the number of redirects allowed in Jersey client?有什么方法可以配置 Jersey 客户端中允许的重定向数量吗?
API 协议异常,用于指示响应何时不符合规范
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.