# JavaScript

**URL:** https://community.sendbird.com/c/sendbird-desk/javascript/25.md

[Latest](https://community.sendbird.com/latest.md) · [Categories](https://community.sendbird.com/categories.md) · [Tags](https://community.sendbird.com/tags.md)

---

## [About the JavaScript category](https://community.sendbird.com/t/about-the-javascript-category/190)

<div class="topic-metadata">

**Author:** [@Sendbird](https://community.sendbird.com/u/Sendbird)\
**Replies:** 0\
**Last updated:** [April 16, 2020, 9:10pm UTC](https://community.sendbird.com/t/about-the-javascript-category/190 "2020-04-16T21:10:33Z")

</div>

(Replace this first paragraph with a brief description of your new category. This guidance will appear in the category selection area, so try to keep it below 200 characters.) Use the following paragraphs for a longer d…

---

## [SYSTEM\_MESSAGE\_TICKET\_GROUP\_TRANSFERRED\_BY\_AGENT leaks too much internal info on its payload](https://community.sendbird.com/t/system-message-ticket-group-transferred-by-agent-leaks-too-much-internal-info-on-its-payload/9993)

<div class="topic-metadata">

**Author:** [@Guy\_Guy](https://community.sendbird.com/u/Guy_Guy)\
**Replies:** 0\
**Last updated:** [August 27, 2024, 8:54am UTC](https://community.sendbird.com/t/system-message-ticket-group-transferred-by-agent-leaks-too-much-internal-info-on-its-payload/9993 "2024-08-27T08:54:27Z")

</div>

\[Problem\] When user chats with a Desk agent (user is using the React UI Kit), and agent performs some actions on a ticket which result in an admin message sent to the user (like the one above), the data attribute contai…

---

## [Sendbird Desk ticket retrieval](https://community.sendbird.com/t/sendbird-desk-ticket-retrieval/9730)

<div class="topic-metadata">

**Author:** [@Marcel\_Anis](https://community.sendbird.com/u/Marcel_Anis)\
**Replies:** 1\
**Last updated:** [July 11, 2024, 7:09pm UTC](https://community.sendbird.com/t/sendbird-desk-ticket-retrieval/9730 "2024-07-11T19:09:52Z")

</div>

\[Problem/Question\] As a user in my react native app: I am unable to see a list of my tickets which are active I am unable to see a list of my tickets which are closed // If problem, please fill out the below. If que…

---

## [Cannot use quickstart-desk-javascript](https://community.sendbird.com/t/cannot-use-quickstart-desk-javascript/2536)

<div class="topic-metadata">

**Author:** [@11115](https://community.sendbird.com/u/11115)\
**Replies:** 3\
**Last updated:** [July 1, 2024, 4:19pm UTC](https://community.sendbird.com/t/cannot-use-quickstart-desk-javascript/2536 "2024-07-01T16:19:50Z")

</div>

I wanted to use quickstart-desk-javascript（https://github.com/sendbird/quickstart-desk-javascript） But after completing all steps written in above readme, I had one problem. I counldn’t log in “Desk Widget Sample Page”…

---

## [Sendbird desk ticket retrival](https://community.sendbird.com/t/sendbird-desk-ticket-retrival/9509)

<div class="topic-metadata">

**Author:** [@Zahid\_Syuqri\_Zulkffli](https://community.sendbird.com/u/Zahid_Syuqri_Zulkffli)\
**Replies:** 0\
**Last updated:** [May 9, 2024, 2:17am UTC](https://community.sendbird.com/t/sendbird-desk-ticket-retrival/9509 "2024-05-09T02:17:16Z")

</div>

\[Problem/Question\] // Detailed description of issue. HI, i got error when trying to call SendbirdDesk.Ticket.getClosedList(0, (closedTickets, error) =\> { if (error) { console.log(‘closedTickets err’, error.message); …

---

## [Property 'sendUserMessage' does not exist on type 'object'](https://community.sendbird.com/t/property-sendusermessage-does-not-exist-on-type-object/6168)

<div class="topic-metadata">

**Author:** [@inferno43](https://community.sendbird.com/u/inferno43)\
**Replies:** 1\
**Last updated:** [May 6, 2024, 6:14am UTC](https://community.sendbird.com/t/property-sendusermessage-does-not-exist-on-type-object/6168 "2024-05-06T06:14:20Z")

</div>

\*\*I am trying to integrate sendbird desk sdk and sendbird chat sdk in my react native application \*\* I tried to create a ticket using Ticket.create method as provided in the documentation though I could see the user get…

---

## [Cannot read properties of undefined (reading 'deskToken')](https://community.sendbird.com/t/cannot-read-properties-of-undefined-reading-desktoken/7794)

<div class="topic-metadata">

**Author:** [@fresh](https://community.sendbird.com/u/fresh)\
**Replies:** 2\
**Last updated:** [July 13, 2023, 1:27am UTC](https://community.sendbird.com/t/cannot-read-properties-of-undefined-reading-desktoken/7794 "2023-07-13T01:27:27Z")

</div>

We are encountering this “Cannot read properties of undefined (reading ‘deskToken’)” when trying to create a ticket using SendBirdDesk javascript with node.js after trying like below SendBirdDesk.Ticket.create(TICKET\_TI…

---

## [No work Filter group channels by user IDs!](https://community.sendbird.com/t/no-work-filter-group-channels-by-user-ids/6257)

<div class="topic-metadata">

**Author:** [@John\_Kim](https://community.sendbird.com/u/John_Kim)\
**Replies:** 0\
**Last updated:** [January 2, 2023, 6:05am UTC](https://community.sendbird.com/t/no-work-filter-group-channels-by-user-ids/6257 "2023-01-02T06:05:49Z")

</div>

i’m, using a JAVASCRIPT SDK v4 i want to filter channel list to the user\_id. but not work. const groupChannelQuery = sb.groupChannel.createMyGroupChannelListQuery({ limit: 100, includeEmpty: true, …

---

## [onTypingStatusUpdated fires false events](https://community.sendbird.com/t/ontypingstatusupdated-fires-false-events/4314)

<div class="topic-metadata">

**Author:** [@Ronen\_Meiri](https://community.sendbird.com/u/Ronen_Meiri)\
**Replies:** 5\
**Last updated:** [December 26, 2022, 4:00am UTC](https://community.sendbird.com/t/ontypingstatusupdated-fires-false-events/4314 "2022-12-26T04:00:27Z")

</div>

Hey, I found something odd while testing one of our features in the chat (over GiftedChat ) . In our code we register on the channel to : channelHandler.onTypingStatusUpdated. our chat setup, is a group channel with a…

---

## [Invitation not found Exception in groupChannel.acceptInvitation](https://community.sendbird.com/t/invitation-not-found-exception-in-groupchannel-acceptinvitation/4022)

<div class="topic-metadata">

**Author:** [@BCH](https://community.sendbird.com/u/BCH)\
**Replies:** 6\
**Last updated:** [February 24, 2022, 5:46am UTC](https://community.sendbird.com/t/invitation-not-found-exception-in-groupchannel-acceptinvitation/4022 "2022-02-24T05:46:37Z")

</div>

Before creating the channel, Our setting is var autoAccept = true; sb.setChannelInvitationPreference(autoAccept, function (response, error) { if (error) { console.log(error) return; } }); Once channel gets create…

---

## [Is it possible to display In-Chat additional promotion data between a chat?](https://community.sendbird.com/t/is-it-possible-to-display-in-chat-additional-promotion-data-between-a-chat/3734)

<div class="topic-metadata">

**Author:** [@asanka](https://community.sendbird.com/u/asanka)\
**Replies:** 2\
**Last updated:** [January 10, 2022, 3:26pm UTC](https://community.sendbird.com/t/is-it-possible-to-display-in-chat-additional-promotion-data-between-a-chat/3734 "2022-01-10T15:26:58Z")

</div>

Hi Community, is it possible to add additional data(hope to add server generated custom rich massages ) by nodejs server, between a chat implemented in a mobile app(both iOS & Android)? Could some one help me out?

---

## [How can I modify the retrieved ticket count of getOpenedList and getClosedList?](https://community.sendbird.com/t/how-can-i-modify-the-retrieved-ticket-count-of-getopenedlist-and-getclosedlist/3720)

<div class="topic-metadata">

**Author:** [@Sandor\_Fulop](https://community.sendbird.com/u/Sandor_Fulop)\
**Replies:** 1\
**Last updated:** [January 7, 2022, 10:57pm UTC](https://community.sendbird.com/t/how-can-i-modify-the-retrieved-ticket-count-of-getopenedlist-and-getclosedlist/3720 "2022-01-07T22:57:41Z")

</div>

Hello, I can get the default retrieved ticket count with SendBirdDesk.Ticket.defaultLimit (like it is used in Sendbird Desk for JavaScript sample). But I have no information about how can I modify this ‘limit’. How can…

---

## [Ticket not updating after closed by agent](https://community.sendbird.com/t/ticket-not-updating-after-closed-by-agent/620)

<div class="topic-metadata">

**Author:** [@sirui](https://community.sendbird.com/u/sirui)\
**Replies:** 5\
**Last updated:** [January 4, 2022, 1:28pm UTC](https://community.sendbird.com/t/ticket-not-updating-after-closed-by-agent/620 "2022-01-04T13:28:38Z")

</div>

I’m using SendBird Desk’s JavaScript SDK and ran into a issue. SendBirdDesk.Ticket.getByChannelUrl doesn’t always return the latest status of the Ticket. It’s still returning the same data when the ticket has been closed…

---

## [How do I integrate this with Django](https://community.sendbird.com/t/how-do-i-integrate-this-with-django/3076)

<div class="topic-metadata">

**Author:** [@eSG](https://community.sendbird.com/u/eSG)\
**Replies:** 3\
**Last updated:** [September 20, 2021, 4:39pm UTC](https://community.sendbird.com/t/how-do-i-integrate-this-with-django/3076 "2021-09-20T16:39:55Z")

</div>

I must be really dumb for asking this question but I do not understand your documentation, you guys talk about Javascript but when I go to Javascript I only see React for web… If I do not have an app with react and I wa…

---

## ["XMLHttpRequest is not defined" error in sendbird-desk npm package](https://community.sendbird.com/t/xmlhttprequest-is-not-defined-error-in-sendbird-desk-npm-package/1845)

<div class="topic-metadata">

**Author:** [@simonb](https://community.sendbird.com/u/simonb)\
**Replies:** 2\
**Last updated:** [March 10, 2021, 11:16pm UTC](https://community.sendbird.com/t/xmlhttprequest-is-not-defined-error-in-sendbird-desk-npm-package/1845 "2021-03-10T23:16:40Z")

</div>

Hi, Running the following in a serverside nodejs application. I get connected to the API but authentication fails! -------------- Code Example -------------- var sb = new SendBird({appId: process.env.SENDBIRD\_APP\_ID})…
