# Unable to connect user to sendbird server

**URL:** <https://community.sendbird.com/t/unable-to-connect-user-to-sendbird-server/7463>\
**Category:** Android\
**Tags:** chatsdk\
**Created:** [May 31, 2023, 2:38pm UTC](https://community.sendbird.com/t/unable-to-connect-user-to-sendbird-server/7463 "2023-05-31T14:38:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BRAHMAM](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/brahmam/32/4098_2.png) [@BRAHMAM](https://community.sendbird.com/u/BRAHMAM)\
**Post date:** [May 31, 2023, 2:38pm UTC](https://community.sendbird.com/t/unable-to-connect-user-to-sendbird-server/7463/1 "2023-05-31T14:38:33Z")

</div>

- I am using sendbird-chat-sdk dependency ‘com.sendbird.sdk:sendbird-chat:4.8.0’

- When I am trying to connect the user to sendbird server, i am getting “400302” error code.

- Can you please guide me how to generate AccessToken by using sendbird-chat-sdk.

I am using sendbird-chat-sdk version == com.sendbird.sdk:sendbird-chat:4.8.0

---

<div class="post-metadata">

**Author:** ![Chinmaya\_Gupta](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/chinmaya_gupta/32/1021_2.png) [@Chinmaya\_Gupta](https://community.sendbird.com/u/Chinmaya_Gupta)\
**Post date:** [July 10, 2023, 12:30pm UTC](https://community.sendbird.com/t/unable-to-connect-user-to-sendbird-server/7463/2 "2023-07-10T12:30:59Z")

</div>

Hello @BRAHMAM

I appreciate your patience here.

The `400302` error code you mentioned indicates an authentication error. Make sure you are using a valid access token and that the user ID is correct.

Also, please note that the Sendbird Chat SDK version you mentioned (4.8.0) is not compatible with the code provided above. The code is based on version 3.0.155 of the Sendbird SDK. You may need to update your SDK version.

Please refer: [GitHub - sendbird/sendbird-chat-sdk-android](https://github.com/sendbird/sendbird-chat-sdk-android)

Let me know if this helps.
