java.net.ProtocolException: too many follow-up requests 异常是在使用 Java 的网络编程接口(如 HttpURLConnection 或类似库)时抛出的,表明程序在处理 HTTP 请求时遇到了过多的重定向(follow-up requests)。下面我将从异常的含义、可能的原因、解决方案三个方面来详细解答你的问题。
则抛出Too many follow-up requests: 21的异常,也就是我们遇到的异常if(++followUpCount>MAX_FOLLOW_UPS){streamAllocation.release();thrownewProtocolException("Too many follow-up requests: "+followUpCount);}} 那么重点就在followUpRequest方法。看一下什么情况下会返回需要重试的request。同样贴一下核心代码: ...
@POST("/login") Call<User> login(); some request: @GET("/request") Call<PojoPojo> getPojo(); And i'm getting this error too many follow-up requests: 21. Please help.Collaborator JakeWharton commented Feb 2, 2016 This gets thrown (by OkHttp, not Retrofit) when there are more...
danielboyer2 (Dan5189) August 2, 2016, 12:21pm 8 Also had the same problem running android version 6.0.1 on an LG G5. Installed the spiceworks app on Monday morning, worked fine for several tickets, late Monday afternoon it started giving the error, Too many follow up requests:21 ...
Typically this happens when you get into a redirect loop, or when you authenticate with the wrong username, and then retry with the same wrong username. You can fix yourAuthenticatorto check if it is a follow-up request and not retry in that case. ...
if (++followUpCount > MAX_FOLLOW_UPS) { throw new ProtocolException("Too many follow-up requests: " + followUpCount); } // 将需要重试或者重定向的请求赋值给新的请求; request = followUp; } } followUpRequest方法的逻辑我们大概瞄一眼,就是根据返回码来做一下操作; ...
You might also get a 429 error if your website is using up too many resources on a shared hosting server or service. If, for example,more than 50 requests are received from an IP address within one minute, PayPal Sandbox will block that IP for the next five minutes. ...
{"boardId":"microsoft365insider","messageSubject":"too-many-request-for-sign-in-to-verify-my-account-","messageId":"3648080"},"buildId":"_FASV5DDw52YaqfBDLqsB","runtimeConfig":{"buildInformationVisible":false,"logLevelApp":"info","logLevelMetrics":"info","openT...
rate limiting when a particular app exceeds the allowed limit of requests. This prevents excessive requests and ensures fair usage of resources. So if an application exceeds the allowed request limit within a given period, the system may respond with the “Application made too many requests” ...
How to Fix Error 429 Too Many Requests? Since there could be more than one cause, troubleshooting this error becomes challenging. In such a situation, it is advised to find the cause first and, after that, apply appropriate fixes. But if you couldn’t find the cause, you could follow th...