Hi Devs,
I need some help with my Nakama, which sometimes does not authenticate properly. When it can’t authenticate, it will throw an error like heartbeat failure in logs.
Even if it is successful in auth, it will disconnect by itself for some time and say:
Peer didn't specify a reason for initiating the closing
.
I already put the session expiry as 2 hours but it disconnects less than that
session:
token_expiry_sec: 7200 # 2 hours
-
Versions: Nakama {2.8.2}, {Windows}, {unreal C++ version}
-
Server Framework Runtime language {Go}
Hello @amhakunrealdev,
This doesn’t seem to be related to token expiry, if you’re using the Nakama Unreal SDK then you should upgrade to latest (v2.10.0). Please also make sure you’re on the latest Nakama server version (v3.25.0).
Client authentication is done via REST API, and realtime socket cannot be established with the server unless the client has a valid auth token from successful authentication - so I’m not sure I understand the flow here, can you please provide a more detailed account of the steps to reproduce the issue, as well as more detailed log entries for both client and server of when this happens, otherwise it’s difficult to help.
Best.
1 Like
Thank you so much for your response. I will first update the Nakama server and SDK versions. If the issue persists, I will provide a more detailed account of the steps to reproduce it