简体   繁体   English

java.net.ProtocolException: 服务器重定向次数过多

[英]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.

相关问题 java.net.ProtocolException: 服务器重定向次数过多 (20) - java.net.ProtocolException: Server redirected too many times (20) java.net.Authenticator:java.net.ProtocolException:服务器重定向太多次(20) - java.net.Authenticator : java.net.ProtocolException: Server redirected too many times (20) 获取“java.net.ProtocolException:服务器重定向次数太多”错误 - Getting “java.net.ProtocolException: Server redirected too many times” Error java.net.ProtocolException:重定向过多:21 Android 应用 - java.net.ProtocolException: Too many redirects: 21 Android App java.net.ProtocolException:Android中的重定向过多 - java.net.ProtocolException: Too many redirects in Android SOAP客户端 - ProtocolException:服务器重定向次数过多 - SOAP client - ProtocolException: Server redirected too many times android中带有HttpsURLConnection的java.net.protocolException - java.net.protocolException with HttpsURLConnection in android 服务器重定向太多次 - Server redirected too many times Java HttpURLConnection问题:服务器重定向次数过多 - Java HttpURLConnection issue: Server redirected too many times 将文件上传到服务器,java.net.ProtocolException:读取响应后无法写入请求正文 - Upload File To Server, java.net.ProtocolException: cannot write request body after response has been read
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM