CreateLobbyAsync doesn‘t work due to NotImplementedException

Hello.
I have a problem I can not create a lobby by calling LobbyService.Instance.CreateLobbyAsync.
Here is the error printout. It says the system has a method or operation not implemented.
I made sure that I installed the necessary packages.
Does anyone know what is wrong here? Please…

[ServicesCore]: Exception occurred when fetching service flags:
System.NotImplementedException: The method or operation is not implemented.
  at Unity.Services.Lobbies.Http.JsonObjectConverter.CanConvert (System.Type objectType) [0x00001] in .\Library\PackageCache\com.unity.services.lobby@1.2.2\Runtime\Http\JsonObjectConverter.cs:78 
  at Newtonsoft.Json.JsonSerializer.GetMatchingConverter (System.Collections.Generic.IList`1[T] converters, System.Type objectType) [0x0000f] in <761cf2a144514d2291a678c334d49e9b>:0 
  at Newtonsoft.Json.JsonSerializer.GetMatchingConverter (System.Type type) [0x00000] in <761cf2a144514d2291a678c334d49e9b>:0 
  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.GetConverter (Newtonsoft.Json.Serialization.JsonContract contract, Newtonsoft.Json.JsonConverter memberConverter, Newtonsoft.Json.Serialization.JsonContainerContract containerContract, Newtonsoft.Json.Serialization.JsonProperty containerProperty) [0x0005a] in <761cf2a144514d2291a678c334d49e9b>:0 
  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType, System.Boolean checkAdditionalContent) [0x000db] in <761cf2a144514d2291a678c334d49e9b>:0 
  at Newtonsoft.Json.JsonSerializer.DeserializeInternal (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x00054] in <761cf2a144514d2291a678c334d49e9b>:0 
  at Newtonsoft.Json.JsonSerializer.Deserialize (Newtonsoft.Json.JsonReader reader, System.Type objectType) [0x00000] in <761cf2a144514d2291a678c334d49e9b>:0 
  at Newtonsoft.Json.Linq.JToken.ToObject (System.Type objectType, Newtonsoft.Json.JsonSerializer jsonSerializer) [0x00034] in <761cf2a144514d2291a678c334d49e9b>:0 
  at Newtonsoft.Json.Linq.JToken.ToObject (System.Type objectType) [0x002ff] in <761cf2a144514d2291a678c334d49e9b>:0 
  at Newtonsoft.Json.Linq.JToken.ToObject[T] () [0x00000] in <761cf2a144514d2291a678c334d49e9b>:0 
  at Unity.Services.Core.Editor.ServiceFlagRequest.ExtractServiceFlagsFromUnityWebRequest (UnityEngine.Networking.UnityWebRequest unityWebRequest) [0x00025] in .\Library\PackageCache\com.unity.services.core@1.12.5\Editor\Core\ProjectStateManagement\ServiceFlagRequest.cs:89 
UnityEngine.Logger:LogError (string,object)
Unity.Services.Core.Internal.CoreLogger:LogError (object) (at ./Library/PackageCache/com.unity.services.core@1.12.5/Runtime/Core.Internal/Logging/CoreLogger.cs:16)
Unity.Services.Core.Editor.ServiceFlagRequest:ExtractServiceFlagsFromUnityWebRequest (UnityEngine.Networking.UnityWebRequest) (at ./Library/PackageCache/com.unity.services.core@1.12.5/Editor/Core/ProjectStateManagement/ServiceFlagRequest.cs:93)
Unity.Services.Core.Editor.ServiceFlagRequest:OnFetchServiceFlagsCompleted (UnityEngine.Networking.UnityWebRequest,Unity.Services.Core.Internal.AsyncOperation`1<System.Collections.Generic.IDictionary`2<string, bool>>) (at ./Library/PackageCache/com.unity.services.core@1.12.5/Editor/Core/ProjectStateManagement/ServiceFlagRequest.cs:66)
Unity.Services.Core.Editor.ServiceFlagRequest/<>c__DisplayClass4_1:<QueryProjectFlags>b__0 (UnityEngine.AsyncOperation) (at ./Library/PackageCache/com.unity.services.core@1.12.5/Editor/Core/ProjectStateManagement/ServiceFlagRequest.cs:54)
UnityEngine.AsyncOperation:InvokeCompletionEvent ()

Hi @ziyansh2 ,

Thanks for the report ! However I can’t reproduce your issue.
It looks like the error actually doesn’t come from Lobby but from the Unity Editor tab responsible to link your local project to your cloud project.

Would you be able to share a minimal project, code snippets and or steps to reproduce ?

Hello.
Sorry for the late update.
I finally found where it was wrong.
The error pops up when I link the cloud project to ProjectSettings->Services.

The Services General Settings shows my cloud project ID correctly, but somehow the link is not working properly.

Do you have any idea what I should take a look at?

Hello.
I figured out what happened to my project.

The WanzyeeStudio JsonNetConverters conflicts with the one used by UnityLobby.
I deleted the WanzyeeStudio one and now it works.

1 Like