# Some users encounter errors when using ListFriendsAsync

**URL:** <https://forum.heroiclabs.com/t/some-users-encounter-errors-when-using-listfriendsasync/4505>\
**Category:** Runtime Framework\
**Tags:** server-framework\
**Created:** [October 25, 2023, 12:31pm UTC](https://forum.heroiclabs.com/t/some-users-encounter-errors-when-using-listfriendsasync/4505 "2023-10-25T12:31:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lgnozk](https://avatars.discourse-cdn.com/v4/letter/l/94ad74/32.png) [@lgnozk](https://forum.heroiclabs.com/u/lgnozk)\
**Post date:** [October 25, 2023, 12:31pm UTC](https://forum.heroiclabs.com/t/some-users-encounter-errors-when-using-listfriendsasync/4505/1 "2023-10-25T12:31:30Z")

</div>

Hello,

When I checked the game logs from users, I noticed that some users are encountering a problem with the `ListFriendAsync` API command on the unity client side. The server responds with: {“code”:13, “message”:“Error while trying to list friends.“}

However, when I try using ListFriendAsync command in the API explorer with the same userId, I can retrieve the friends successfully. How is this possible? Why does the server sometimes respond with this message and fail to list friends for these users?

Nakama Server Version: v3.17.1  
Nakama Unity Client Version: v3.9.0

---

<div class="post-metadata">

**Author:** ![sesposito](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/sesposito/32/2594_2.png) [@sesposito](https://forum.heroiclabs.com/u/sesposito)\
**Post date:** [October 25, 2023, 2:05pm UTC](https://forum.heroiclabs.com/t/some-users-encounter-errors-when-using-listfriendsasync/4505/2 "2023-10-25T14:05:51Z")

</div>

Hello @lgnozk,

Are there any server logs related to this client error?
