# HTTP 400 error gathering stats based on JWT

**URL:** <https://devforum.zoom.us/t/http-400-error-gathering-stats-based-on-jwt/14338>\
**Category:** API and Webhooks\
**Created:** [April 21, 2020, 11:52pm UTC](https://devforum.zoom.us/t/http-400-error-gathering-stats-based-on-jwt/14338 "2020-04-21T23:52:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![aaggarwa](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/aaggarwa/32/2150_2.png) [@aaggarwa](https://devforum.zoom.us/u/aaggarwa)\
**Post date:** [April 21, 2020, 11:52pm UTC](https://devforum.zoom.us/t/http-400-error-gathering-stats-based-on-jwt/14338/1 "2020-04-21T23:52:56Z")

</div>

**Description**  
I am trying to gather stats for all the users in our account. For the purpose I need to make multiple calls as part of the same. The calls are working fine until few hundred users but starts failing after that.

**Error**  
Receiving “400 Request Header Or Cookie Too Large” after few hundred successful calls.

Operation failed. Label: Fetch JsonRoot, Name: JsonRootFetch, Message: HttpResponse StatusCode was 400 .\<!doctype html\>HTTP Status 400 â€“ Bad Requesth1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} h2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} h3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} body {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} b {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} p {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;} a {color:black;} a.name {color:black;} .line {height:1px;background-color:#525D76;border:none;}

# HTTP Status 400 â€“ Bad Request

* * *

**Type** Exception Report

**Message** Request header is too large

**Description** The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).

**Exception**

```
java.lang.IllegalArgumentException: Request header is too large
org.apache.coyote.http11.Http11InputBuffer.fill(Http11InputBuffer.java:720)
org.apache.coyote.http11.Http11InputBuffer.parseHeader(Http11InputBuffer.java:867)
org.apache.coyote.http11.Http11InputBuffer.parseHeaders(Http11InputBuffer.java:573)
org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:700)
org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:806)
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)
org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
java.lang.Thread.run(Thread.java:748)

API used “Get Meeting Reports”

There is no change the way headers and request are passed for successful and failed calls. Can there be that the zoom API is considering this as a spamming and as a security behaving like this or you believe this could be something at my end.
```

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [April 23, 2020, 12:20am UTC](https://devforum.zoom.us/t/http-400-error-gathering-stats-based-on-jwt/14338/2 "2020-04-23T00:20:31Z")

</div>

Hey @aaggarwa,

Please double check you are not exceeding our [rate limits](https://marketplace.zoom.us/docs/api-reference/rate-limits).

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![aaggarwa](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/aaggarwa/32/2150_2.png) [@aaggarwa](https://devforum.zoom.us/u/aaggarwa)\
**Post date:** [April 23, 2020, 1:06am UTC](https://devforum.zoom.us/t/http-400-error-gathering-stats-based-on-jwt/14338/3 "2020-04-23T01:06:43Z")

</div>

Hi Tommy,

I checked that somehow my process was appending content type from previous call as part of every new request. Hence, after a certain limit it was getting too long for zoom API to process.

I have made changes at my end to reset the same as part of every call and it’s working fine now.

Thanks,  
Abhishek Aggarwal

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [April 23, 2020, 6:20pm UTC](https://devforum.zoom.us/t/http-400-error-gathering-stats-based-on-jwt/14338/4 "2020-04-23T18:20:32Z")

</div>

Thanks for the follow up!

Happy to hear it is working! 🙂

-Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 8:54pm UTC](https://devforum.zoom.us/t/http-400-error-gathering-stats-based-on-jwt/14338/5 "2020-08-21T20:54:59Z")

</div>

Closed on August 21, 2020, 8:54pm UTC


