# NakamaAsyncResult error in Godot 4

**URL:** <https://forum.heroiclabs.com/t/nakamaasyncresult-error-in-godot-4/3667>\
**Category:** Game Design\
**Created:** [March 21, 2023, 8:57am UTC](https://forum.heroiclabs.com/t/nakamaasyncresult-error-in-godot-4/3667 "2023-03-21T08:57:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sergisnt](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/sergisnt/32/1377_2.png) [@sergisnt](https://forum.heroiclabs.com/u/sergisnt)\
**Post date:** [March 21, 2023, 8:57am UTC](https://forum.heroiclabs.com/t/nakamaasyncresult-error-in-godot-4/3667/1 "2023-03-21T08:57:03Z")

</div>

Hi guys! Has anyone managed to use the Nakama addons in Godot 4 stable? I’m using beta 17, the one before the stable one and I don’t have any problem, but with the stable version this happens to me.

 ![Error Godot](https://us1.discourse-cdn.com/flex020/uploads/heroiclabs/original/2X/c/c556a18ab9c4ea67f98dbdac0f56a80f63d6de76.jpeg)

This error appears when you try to start the application with the nakama addons. It is in the NakamaAsyncResult class. I have tried to eliminate these validations and others and I cannot connect.

I have looked in your repositories and I have not seen new versions of the nakama addons? Do you know any solution to correct this error and make nakama work in Godot 4 stable version?

Thanks!

---

<div class="post-metadata">

**Author:** ![stevets](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@stevets](https://forum.heroiclabs.com/u/stevets)\
**Post date:** [March 21, 2023, 6:25pm UTC](https://forum.heroiclabs.com/t/nakamaasyncresult-error-in-godot-4/3667/2 "2023-03-21T18:25:54Z")

</div>

Hi,  
I tried these changes

> <https://github.com/heroiclabs/nakama-godot/pull/159/commits/fd3f9cc01eb68aa6b20501eb86b8eb069caa4030>

as others have suggested and it seemed to fix that problem. I can now authenticate with Godot 4 but I cannot make a socket connection.

---

<div class="post-metadata">

**Author:** ![sergisnt](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/sergisnt/32/1377_2.png) [@sergisnt](https://forum.heroiclabs.com/u/sergisnt)\
**Post date:** [March 21, 2023, 11:13pm UTC](https://forum.heroiclabs.com/t/nakamaasyncresult-error-in-godot-4/3667/3 "2023-03-21T23:13:51Z")

</div>

Thanks bro! Solved!\<3

---

<div class="post-metadata">

**Author:** ![Ace](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/ace/32/1611_2.png) [@Ace](https://forum.heroiclabs.com/u/Ace)\
**Post date:** [April 15, 2023, 9:09pm UTC](https://forum.heroiclabs.com/t/nakamaasyncresult-error-in-godot-4/3667/4 "2023-04-15T21:09:46Z")

</div>

Anyone managed to get socket working with Godot 4? It can authenticate, but when I try to do socket connection, it does connect but the client is closing the connection afterwards
