# getMessagesByMessageId() not working

**URL:** <https://community.sendbird.com/t/getmessagesbymessageid-not-working/5307>\
**Category:** JavaScript\
**Tags:** group-channel, chatsdk\
**Created:** [August 11, 2022, 3:57am UTC](https://community.sendbird.com/t/getmessagesbymessageid-not-working/5307 "2022-08-11T03:57:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abd](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/abd/32/2373_2.png) [@Abd](https://community.sendbird.com/u/Abd)\
**Post date:** [August 11, 2022, 3:57am UTC](https://community.sendbird.com/t/getmessagesbymessageid-not-working/5307/1 "2022-08-11T03:57:29Z")

</div>

Hi,

I’m trying to use ` getMessagesByMessageId()` according to the documentation [Load messages by timestamp or message ID | Chat JavaScript SDK | Sendbird Docs](https://sendbird.com/docs/chat/v4/javascript/message/loading-messages/load-messages-by-timestamp-or-message-id#1-load-messages-by-timestamp-or-message-id) but I’m getting ` getMessagesByMessageId is not a function`  
But when I replace it with ` getMessagesByTimestamp()`  
it works just fine.

SDK version: v4.0.9

---

<div class="post-metadata">

**Author:** ![Tyler](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/tyler/32/810_2.png) [@Tyler](https://community.sendbird.com/u/Tyler)\
**Post date:** [August 11, 2022, 5:29am UTC](https://community.sendbird.com/t/getmessagesbymessageid-not-working/5307/2 "2022-08-11T05:29:05Z")

</div>

Hey @Abd,

Looks like this is a bug. We’ll get this corrected in the `4.0.10` release.

---

<div class="post-metadata">

**Author:** ![Abd](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/abd/32/2373_2.png) [@Abd](https://community.sendbird.com/u/Abd)\
**Post date:** [August 26, 2022, 3:22am UTC](https://community.sendbird.com/t/getmessagesbymessageid-not-working/5307/3 "2022-08-26T03:22:05Z")

</div>

Hi @Tyler,

Was this issue fixed in the `4.0.10` release?  
I’m still getting the same error

---

<div class="post-metadata">

**Author:** ![Tyler](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/tyler/32/810_2.png) [@Tyler](https://community.sendbird.com/u/Tyler)\
**Post date:** [August 26, 2022, 7:41am UTC](https://community.sendbird.com/t/getmessagesbymessageid-not-working/5307/4 "2022-08-26T07:41:25Z")

</div>

Looks like there was a delay getting it out in this release. It’s scheduled to be included in `4.0.11` which is slated hopefully for next Wednesday KST.
