# Getting Error too many requests from openvidu

**URL:** <https://openvidu.discourse.group/t/getting-error-too-many-requests-from-openvidu/2647>\
**Category:** Issues developing apps\
**Tags:** v2\
**Created:** [February 5, 2021, 9:58am UTC](https://openvidu.discourse.group/t/getting-error-too-many-requests-from-openvidu/2647 "2021-02-05T09:58:54Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![krishna\_prasad](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/krishna_prasad/32/1194_2.png) [@krishna\_prasad](https://openvidu.discourse.group/u/krishna_prasad)\
**Post date:** [February 5, 2021, 9:58am UTC](https://openvidu.discourse.group/t/getting-error-too-many-requests-from-openvidu/2647/1 "2021-02-05T09:58:54Z")

</div>

Hi ,

In a meeting 16 people joined and we got the token error as too many requests.

and we are unable to get the audio stream properly…

 ![Too many requests 5-Feb-2021](https://global.discourse-cdn.com/free1/uploads/openvidu/original/2X/2/244e832d682cdc4f12e6818ffb04986fd2f9b23d.jpeg)

Thanks,  
Krishna Prasad BH.

---

<div class="post-metadata">

**Author:** ![cruizba](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/cruizba/32/18_2.png) [@cruizba](https://openvidu.discourse.group/u/cruizba)\
**Post date:** [February 8, 2021, 2:12pm UTC](https://openvidu.discourse.group/t/getting-error-too-many-requests-from-openvidu/2647/2 "2021-02-08T14:12:58Z")

</div>

What OpenVidu do you have deployed, OpenVidu CE or OpenVidu PRO and which version?

Can you share OpenVidu logs when this happens? SSH into your instance and execute:

```auto
sudo su
cd /opt/openvidu
./openvidu logs

```

Regards

---

<div class="post-metadata">

**Author:** ![krishna\_prasad](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/krishna_prasad/32/1194_2.png) [@krishna\_prasad](https://openvidu.discourse.group/u/krishna_prasad)\
**Post date:** [February 9, 2021, 1:30pm UTC](https://openvidu.discourse.group/t/getting-error-too-many-requests-from-openvidu/2647/4 "2021-02-09T13:30:42Z")

</div>

Hi cruizba,

We are using Openvidu 2.16 pro version…

as we think that this is handling from our side only with the express rate limiter.

anyhow check once for reference.can you help **how can i take the openvidu logs with particular time and date?**

-1",“state”:“WAITING”,“priority”:5,“type”:“Normal”},{“name”:“defaultEventExecutorGroup-7-1”,“state”:“WAITING”,“priority”:5,“type”:“Normal”},{“name”:“http-nio-0.0.0.0-5443-exec-1”,“state”:“WAITING”,“priority”:5,“type”:“Daemon”},{“name”:“Thread-11”,“state”:“RUNNABLE”,“priority”:5,“type”:“Normal”},{“name”:“defaultEventExecutorGroup-6-2”,“state”:“TIMED\_WAITING”,“priority”:5,“type”:“Normal”},{“name”:“I/O dispatcher 12”,“state”:“RUNNABLE”,“priority”:5,“type”:“Normal”},{“name”:“Thread-3”,“state”:“TIMED\_WAITING”,“priority”:5,“type”:“Normal”},{“name”:“I/O dispatcher 19”,“state”:“RUNNABLE”,“priority”:5,“type”:“Normal”},{“name”:“I/O dispatcher 9”,“state”:“RUNNABLE”,“priority”:5,“type”:“Normal”},{“name”:“http-nio-0.0.0.0-5443-exec-10”,“state”:“WAITING”,“priority”:5,“type”:“Daemon”},{“name”:“http-nio-0.0.0.0-5443-ClientPoller”,“state”:“RUNNABLE”,“priority”:5,“type”:“Daemon”},{“name”:“I/O dispatcher 18”,“state”:“RUNNABLE”,“priority”:5,“type”:“Normal”},{“name”:“Timer-0”,“state”:“TIMED\_WAITING”,“priority”:5,“type”:“Normal”},{“name”:“pool-10-thread-2”,“state”:“WAITING”,“priority”:5,“type”:“Normal”},{“name”:“I/O dispatcher 21”,“state”:“RUNNABLE”,“priority”:5,“type”:“Normal”},{“name”:“pool-11-thread-4”,“state”:“WAITING”,“priority”:5,“type”:“Normal”},{“name”:“http-nio-0.0.0.0-5443-exec-3”,“state”:“WAITING”,“priority”:5,“type”:“Daemon”},{“name”:“I/O dispatcher 14”,“state”:“RUNNABLE”,“priority”:5,“type”:“Normal”},{“name”:“http-nio-0.0.0.0-5443-exec-6”,“state”:“WAITING”,“priority”:5,“type”:“Daemon”},{“name”:“DestroyJavaVM”,“state”:“RUNNABLE”,“priority”:5,“type”:“Normal”},{“name”:“SessionHandler-q171cf0rievebejbmrktorls8d-e1537-t0”,“state”:“WAITING”,“priority”:5,“type”:“Normal”},{“name”:“pool-11-thread-8”,“state”:“WAITING”,“priority”:5,“type”:“Normal”},{“name”:“I/O dispatcher 15”,“state”:“RUNNABLE”,“priority”:5,“type”:“Normal”},{“name”:“nioEventLoopGroup-5-1”,“state”:“RUNNABLE”,“priority”:10,“type”:“Normal”},{“name”:“http-nio-0.0.0.0-5443-Acceptor”,“state”:“RUNNABLE”,“priority”:5,“type”:“Daemon”},{“name”:“I/O dispatcher 24”,“state”:“RUNNABLE”,“priority”:5,“type”:“Normal”},{“name”:“Catalina-utility-1”,“state”:“TIMED\_WAITING”,“priority”:1,“type”:“Normal”},{“name”:“Reference Handler”,“state”:“WAITING”,“priority”:10,“type”:“Daemon”},{“name”:“I/O dispatcher 1”,“state”:“RUNNABLE”,“priority”:5,“type”:“Normal”},{“name”:“Signal Dispatcher”,“state”:“RUNNABLE”,“priority”:9,“type”:“Daemon”},{“name”:“pool-11-thread-3”,“state”:“WAITING”,“priority”:5,“type”:“Normal”},{“name”:“I/O dispatcher 2”,“state”:“RUNNABLE”,“priority”:5,“type”:“Normal”},{“name”:“pool-10-thread-3”,“state”:“WAITING”,“priority”:5,“type”:“Normal”},{“name”:“I/O dispatcher 6”,“state”:“RUNNABLE”,“priority”:5,“type”:“Normal”},{“name”:“Keep-Alive-SocketCleaner”,“state”:“WAITING”,“priority”:8,“type”:“Daemon”},{“name”:“pool-11-thread-1”,“state”:“WAITING”,“priority”:5,“type”:“Normal”},{“name”:“defaultEventExecutorGroup-7-2”,“state”:“WAITING”,“priority”:5,“type”:“Normal”},{“name”:“nioEventLoopGroup-5-2”,“state”:“RUNNABLE”,“priority”:10,“type”:“Normal”},{“name”:“Timer-3”,“state”:“TIMED\_WAITING”,“priority”:5,“type”:“Normal”},{“name”:“I/O dispatcher 20”,“state”:“RUNNABLE”,“priority”:5,“type”:“Normal”},{“name”:“JsonRpcClient-hearbeatExec-e4-t0”,“state”:“TIMED\_WAITING”,“priority”:5,“type”:“Normal”},{“name”:“container-0”,“state”:“TIMED\_WAITING”,“priority”:5,“type”:“Normal”},{“name”:“Timer-1”,“state”:“TIMED\_WAITING”,“priority”:5,“type”:“Normal”},{“name”:“I/O dispatcher 3”,“state”:“RUNNABLE”,“priority”:5,“type”:“Normal”},{“name”:“pool-11-thread-7”,“state”:“WAITING”,“priority”:5,“type”:“Normal”},{“name”:“http-nio-0.0.0.0-5443-exec-9”,“state”:“WAITING”,“priority”:5,“type”:“Daemon”},{“name”:“I/O dispatcher 23”,“state”:“RUNNABLE”,“priority”:5,“type”:“Normal”},{“name”:“process reaper”,“state”:“TIMED\_WAITING”,“priority”:10,“type”:“Daemon”},{“name”:“I/O dispatcher 5”,“state”:“RUNNABLE”,“priority”:5,“type”:“Normal”},{“name”:“jsonrpcTaskScheduler-1”,“state”:“WAITING”,“priority”:5,“type”:“Normal”},{“name”:“I/O dispatcher 13”,“state”:“RUNNABLE”,“priority”:5,“type”:“Normal”},{“name”:“JsonRpcClient-hearbeatExec-e1-t0”,“state”:“TIMED\_WAITING”,“priority”:5,“type”:“Normal”},{“name”:“I/O dispatcher 16”,“state”:“RUNNABLE”,“priority”:5,“type”:“Normal”},{“name”:“I/O dispatcher 17”,“state”:“RUNNABLE”,“priority”:5,“type”:“Normal”},{“name”:“nioEventLoopGroup-5-3”,“state”:“RUNNABLE”,“priority”:10,“type”:“Normal”},{“name”:“pool-10-thread-4”,“state”:“WAITING”,“priority”:5,“type”:“Normal”},{“name”:“http-nio-0.0.0.0-5443-exec-5”,“state”:“WAITING”,“priority”:5,“type”:“Daemon”},{“name”:“pool-13-thread-1”,“state”:“RUNNABLE”,“priority”:5,“type”:“Normal”},{“name”:“http-nio-0.0.0.0-5443-BlockPoller”,“state”:“RUNNABLE”,“priority”:5,“type”:“Daemon”},{“name”:“I/O dispatcher 10”,“state”:“RUNNABLE”,“priority”:5,“type”:“Normal”},{“name”:“pool-11-thread-2”,“state”:“WAITING”,“priority”:5,“type”:“Normal”},{“name”:“SessionHandler-t4hbuubvbd4cvgf8ugsrp4rqvl-e2461-t0”,“state”:“WAITING”,“priority”:5,“type”:“Normal”},{“name”:“nioEventLoopGroup-3-1”,“state”:“RUNNABLE”,“priority”:10,“type”:“Normal”},{“name”:“Catalina-utility-2”,“state”:“WAITING”,“priority”:1,“type”:“Normal”},{“name”:“pool-12-thread-1”,“state”:“RUNNABLE”,“priority”:5,“type”:“Normal”},{“name”:“http-nio-0.0.0.0-5443-exec-2”,“state”:“WAITING”,“priority”:5,“type”:“Daemon”},{“name”:“pool-3-thread-1”,“state”:“WAITING”,“priority”:5,“type”:“Normal”},{“name”:“Thread-8”,“state”:“WAITING”,“priority”:5,“type”:“Normal”},{“name”:“SessionHandler-rkp1hdt0uqjv1mpr1pceh1gp5n-e1749-t0”,“state”:“WAITING”,“priority”:5,“type”:“Normal”},{“name”:“Timer-2”,“state”:“TIMED\_WAITING”,“priority”:5,“type”:“Normal”},{“name”:“pool-2-thread-1”,“state”:“RUNNABLE”,“priority”:5,“type”:“Normal”},{“name”:“http-nio-0.0.0.0-5443-exec-8”,“state”:“WAITING”,“priority”:5,“type”:“Daemon”},{“name”:“I/O dispatcher 8”,“state”:“RUNNABLE”,“priority”:5,“type”:“Normal”},{“name”:“pool-11-thread-5”,“state”:“WAITING”,“priority”:5,“type”:“Normal”},{“name”:“http-nio-0.0.0.0-5443-exec-7”,“state”:“WAITING”,“priority”:5,“type”:“Daemon”},{“name”:“I/O dispatcher 22”,“state”:“RUNNABLE”,“priority”:5,“type”:“Normal”},{“name”:“SessionHandler-m48h4sl7klfhbirnp9cue075ll-e621-t0”,“state”:“WAITING”,“priority”:5,“type”:“Normal”},{“name”:“nioEventLoopGroup-2-1”,“state”:“RUNNABLE”,“priority”:10,“type”:“Normal”},{“name”:"I/O

Regards,  
Krishna Prasad Bh

---

<div class="post-metadata">

**Author:** ![cruizba](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/cruizba/32/18_2.png) [@cruizba](https://openvidu.discourse.group/u/cruizba)\
**Post date:** [February 9, 2021, 2:04pm UTC](https://openvidu.discourse.group/t/getting-error-too-many-requests-from-openvidu/2647/5 "2021-02-09T14:04:08Z")

</div>

1. Go to kibana: https://\<YOUR\_DOMAIN\_NAME\>/kibana
2. Enter your credentials (They should be configured in your .env file in `/opt/openvidu` as `ELASTICSEARCH_USERNAME` and `ELASTICSEARCH_PASSWORD`
3. Go to Logs section:  
 ![image](https://global.discourse-cdn.com/free1/uploads/openvidu/original/2X/3/38c993ad3b4226cbcbbf3e3a25f3f11dab598fe1.png)
4. Click on settings and enter in “Log indices”: `openvidu-logs*`  
 ![image](https://global.discourse-cdn.com/free1/uploads/openvidu/original/2X/f/fda24520ccc9834a224e438d51df604f0bd34e2d.png)
5. Go to the stream section again and enter a time range:  
 ![image](https://global.discourse-cdn.com/free1/uploads/openvidu/original/2X/3/333c2937fb44c1d6287ea4c90f67a3ba7e97f1d4.png)
6. Copy the log where you were affected with this.

Regardless of the issue, I think that this error may be caused because of an specific service or a client spamming to much parallel http request within a second (propably some kind of polling in your application) which is causing this error, so the server is acting with a 429 error to avoid the system to flood with unnecessary calls: [https://stackoverflow.com/a/51423469/14743924](https://stackoverflow.com/a/51423469/14743924)  
Another possibility is that your server is configured with an external proxy which is limiting parallel requests of same client/services.

---

<div class="post-metadata">

**Author:** ![cruizba](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/cruizba/32/18_2.png) [@cruizba](https://openvidu.discourse.group/u/cruizba)\
**Post date:** [February 9, 2021, 2:05pm UTC](https://openvidu.discourse.group/t/getting-error-too-many-requests-from-openvidu/2647/6 "2021-02-09T14:05:48Z")

</div>

Probably related could be the resources of your machine. Which specifications do you have in your OpenVidu Pro Node and Media Nodes?

---

<div class="post-metadata">

**Author:** ![cruizba](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/cruizba/32/18_2.png) [@cruizba](https://openvidu.discourse.group/u/cruizba)\
**Post date:** [February 9, 2021, 2:13pm UTC](https://openvidu.discourse.group/t/getting-error-too-many-requests-from-openvidu/2647/7 "2021-02-09T14:13:26Z")

</div>

> [@krishna\_prasad](#):
>
> as we think that this is handling from our side only with the express rate limiter.

Sorry, I’ve missed you said that.

Probably this rate limiter is causing the problem

---

<div class="post-metadata">

**Author:** ![krishna\_prasad](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/krishna_prasad/32/1194_2.png) [@krishna\_prasad](https://openvidu.discourse.group/u/krishna_prasad)\
**Post date:** [February 10, 2021, 1:50pm UTC](https://openvidu.discourse.group/t/getting-error-too-many-requests-from-openvidu/2647/8 "2021-02-10T13:50:24Z")

</div>

HI,

Thanks for the reply

does openvidu handling any rate limit to token api?

Thanks,  
Krishna Prasad

---

<div class="post-metadata">

**Author:** ![cruizba](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/cruizba/32/18_2.png) [@cruizba](https://openvidu.discourse.group/u/cruizba)\
**Post date:** [February 10, 2021, 2:03pm UTC](https://openvidu.discourse.group/t/getting-error-too-many-requests-from-openvidu/2647/9 "2021-02-10T14:03:51Z")

</div>

AFAIK we don’t use any kind of rate limit.
