Joining a channel causes "Cannot read properties of null (reading 'guest_id')" error

[Problem/Question]
// Detailed description of issue.
I’m using <SBConversation> fro the uikit-react.
In our workflow - joining a channel is doen via the backend, so the backend/server calls sendbird api and joins a channel on behalf of the current logged in user.
Immediately after joining the channel the <SBConversation> component crashes the react app with this error:

Uncaught runtime errors:
ERROR
Cannot read properties of null (reading 'guest_id')
TypeError: Cannot read properties of null (reading 'guest_id')
    at new r (http://localhost:3000/static/js/bundle.js:293573:83)
    at new n (http://localhost:3000/static/js/bundle.js:280778:70)
    at n.as (http://localhost:3000/static/js/bundle.js:290439:14)
    at e.<anonymous> (http://localhost:3000/static/js/bundle.js:282054:38)
    at http://localhost:3000/static/js/bundle.js:289303:17
    at Object.next (http://localhost:3000/static/js/bundle.js:289314:8)
    at s (http://localhost:3000/static/js/bundle.js:289219:13)

my code doesn’t include ANY guest_id and tracking that code down seem to come from the bundled package, if you look in sendbird github’s account - the only mention for this is in relation to Flutter… not sure why is that even related… https://github.com/search?q=org%3Asendbird+guest_id&type=code.


// If problem, please fill out the below. If question, please delete.
[UIKit Version]
“react”: “^17.0.1”
@sendbird/uikit-react”: “^3.6.3”

[Reproduction Steps]
Join a channel from the backend.

[Frequency]
Always

[Current impact]
Can’t join channels

1 Like

We are also getting the same error. @Support_Engineers can you please take a look. We are using
@sendbird/uikit-react-native”: “2.4.1”
@sendbird/chat”: “4.9.3”

+1 this is happening to me as well. I’m using the React Native SDK:

    "@sendbird/chat": "^4.9.4",
    "@sendbird/react-native-scrollview-enhancer": "^0.2.1",
    "@sendbird/uikit-react-native": "^3.0.4",
    "@sendbird/uikit-react-native-foundation": "^3.0.4",

Hello,

Welcome to the Sendbird Community!

This issue was caused by the Chat SDK, and our engineering team has released the fix.
Could you please update the Chat SDK to the latest version, v4.9.5?

2 Likes

thanks @Miyoung_Han that helped!