Hello,
I’m using Unity package with nakama to query User Groups,
Documentation seems to be outdated,
List group members from documentation looks like this
var result = await client.ListGroupUsersAsync(session, groupId);
While on decompiler function looks like this
public Task<IApiGroupUserList> ListGroupUsersAsync(
ISession session,
string groupId,
int? state,
int limit,
string cursor)
We’re trying to call listgroup with this
Task<IApiGroupUserList> listTask = client.ListGroupUsersAsync(session, guildId, null, guildLimit, "");
listTask.ContinueWith((task) =>
{
bool success = !(task.IsCanceled || task.IsFaulted);
if(success) {// do something }
else {// do something }
}, TaskScheduler.FromCurrentSynchronizationContext());
But got this error
System.NullReferenceException: Object reference not set to an instance of an object
at Nakama.HttpRequestAdapter+<SendAsync>d__6.MoveNext () [0x0023c] in <99ab1ffd513a481fae6067e64cfa51b3>:0
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <d7ac571ca2d04b2f981d0d886fa067cf>:0
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <d7ac571ca2d04b2f981d0d886fa067cf>:0
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <d7ac571ca2d04b2f981d0d886fa067cf>:0
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <d7ac571ca2d04b2f981d0d886fa067cf>:0
at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0
at Nakama.ApiClient+<ListGroupUsersAsync>d__43.MoveNext () [0x001a4] in <99ab1ffd513a481fae6067e64cfa51b3>:0
Other API that we’ve tested runs correctly so far, nakama is deployed to digital ocean droplets, not on local machine
Any idea on how to fix this?