# When sending messages continuously, some messages are not posted

**URL:** <https://devforum.zoom.us/t/when-sending-messages-continuously-some-messages-are-not-posted/65880>\
**Category:** Chat\
**Created:** [March 16, 2022, 7:30am UTC](https://devforum.zoom.us/t/when-sending-messages-continuously-some-messages-are-not-posted/65880 "2022-03-16T07:30:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![J.tanaka](https://avatars.discourse-cdn.com/v4/letter/j/e274bd/32.png) [@J.tanaka](https://devforum.zoom.us/u/J.tanaka)\
**Post date:** [March 16, 2022, 7:30am UTC](https://devforum.zoom.us/t/when-sending-messages-continuously-some-messages-are-not-posted/65880/1 "2022-03-16T07:30:08Z")

</div>

When sending messages in a short cycle by Zoom Chat API (POST /chat/users/{userId}/messages), some messages are not posted.  
For example, when sending 0 to 1000 messages every 0.1 seconds:

0 to 45: posted  
46 to 290: not posted  
291 to 304: posted  
305 to 829: not posted  
830 to 859: posted  
860 to 1000: not posted.

The response for all messages is 201 instead of 429 (rate limit), and even for not posted messages, the response body contains the message ID.  
However, when requesting the ID of a not posted message to /chat/users/{userId}/messages/{messageId}, the following response is returned: (\*\*\* is messageId)

```auto
{"code":5401,"message":"Message does not exist: ***."}

```

My code to send messages is below.

```auto
var request = require('request');

let access_token = ***
let channel_id = ***

function send_chat_messages(message){
  var options = {
    method: "POST",
    url: "https://api.zoom.us/v2/chat/users/me/messages",
    rejectUnauthorized: false,
    headers: {
      authorization: "Bearer " + access_token,
      "Content-type": "application/json",
    },
    json: {
      message: message,
      to_channel: channel_id
    }
  }
  request(options, function (error, response, body) {
    if (error) throw new Error(error);
    console.log(body);
  });
}

var i = 0;
var interval_id = setInterval(() => {
  if (i == 1000){
    clearInterval(interval_id)
  }
  console.log(i, new Date())
  send_chat_messages(i)
  i++;
}, 100)

```

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [March 18, 2022, 4:38pm UTC](https://devforum.zoom.us/t/when-sending-messages-continuously-some-messages-are-not-posted/65880/2 "2022-03-18T16:38:18Z")

</div>

Hi @J.tanaka

Thanks for reaching out to the Zoom Developer Forum, I am happy to help here!  
This seems like a strange behavior, can you open a support ticket with this information so we can investigate this issue further?

> **[Zoom Developer Support](https://devsupport.zoom.us/hc/en-us)**

Thanks,  
Elisa

---

<div class="post-metadata">

**Author:** ![J.tanaka](https://avatars.discourse-cdn.com/v4/letter/j/e274bd/32.png) [@J.tanaka](https://devforum.zoom.us/u/J.tanaka)\
**Post date:** [March 23, 2022, 3:55am UTC](https://devforum.zoom.us/t/when-sending-messages-continuously-some-messages-are-not-posted/65880/3 "2022-03-23T03:55:26Z")

</div>

Hi @elisa.zoom

Thank you for your support.  
I opened a support ticket ([https://support.zoom.us/hc/en-us/requests/13887950](https://support.zoom.us/hc/en-us/requests/13887950)).  
But when I issued a ticket with the same content before ([https://support.zoom.us/hc/en-us/requests/13813622](https://support.zoom.us/hc/en-us/requests/13813622)), I was told to post it to the Devforum, so I posted it.

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [March 23, 2022, 5:08pm UTC](https://devforum.zoom.us/t/when-sending-messages-continuously-some-messages-are-not-posted/65880/4 "2022-03-23T17:08:32Z")

</div>

Thanks @J.tanaka I see.  
Allow me some time to debug this issue and I will come back to you with an update.  
Best,  
Elisa

---

<div class="post-metadata">

**Author:** ![J.tanaka](https://avatars.discourse-cdn.com/v4/letter/j/e274bd/32.png) [@J.tanaka](https://devforum.zoom.us/u/J.tanaka)\
**Post date:** [April 7, 2022, 6:40am UTC](https://devforum.zoom.us/t/when-sending-messages-continuously-some-messages-are-not-posted/65880/5 "2022-04-07T06:40:57Z")

</div>

Hi @elisa.zoom  
Has there been any progress about that?  
Best,  
Tanaka

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [April 7, 2022, 7:39pm UTC](https://devforum.zoom.us/t/when-sending-messages-continuously-some-messages-are-not-posted/65880/6 "2022-04-07T19:39:10Z")

</div>

Hi @J.tanaka  
Sorry for the late reply, I have replied you in the internal ticket you created.  
I will take it from there!  
Cheers,  
Elisa
