So i have been trying to fix this for over 2 hours, 3 if you count yesterday as well.
So I am trying to get lobbies working, I authenticate the user in a scene and then move to the lobby scene, which should get a list of lobbies, however in that function when I try to query for them it crashes, it gives me this weird error below. I have tried debugging this in every way possible, searching online, breakpoints, and debug.log, the only thing I have learned is that I can’t seem to fix it, I have also discovered that the lobby service returns null when doing the query.
ERROR:
Unity.Services.Lobbies.LobbyServiceException: (401) HTTP/1.1 401 Unauthorized —> Unity.Services.Lobbies.Http.HttpException: (401) HTTP/1.1 401 Unauthorized
at Unity.Services.Lobbies.Http.ResponseHandler.HandleAsyncResponse (Unity.Services.Lobbies.Http.HttpClientResponse response, System.Collections.Generic.Dictionary2[TKey,TValue] statusCodeToTypeMap) [0x0006c] in <cda35441ea7e4b63805bd2a1e1256229>:0 at Unity.Services.Lobbies.Http.ResponseHandler.HandleAsyncResponse[T] (Unity.Services.Lobbies.Http.HttpClientResponse response, System.Collections.Generic.Dictionary
2[TKey,TValue] statusCodeToTypeMap) [0x00000] in :0
at Unity.Services.Lobbies.Apis.Lobby.LobbyApiClient.QueryLobbiesAsync (Unity.Services.Lobbies.Lobby.QueryLobbiesRequest request, Unity.Services.Lobbies.Configuration operationConfiguration) [0x00149] in :0
at Unity.Services.Lobbies.Internal.WrappedLobbyService.TryCatchRequest[TRequest,TReturn] (System.String api, System.Func3[T1,T2,TResult] func, TRequest request) [0x000a4] in <cda35441ea7e4b63805bd2a1e1256229>:0 --- End of inner exception stack trace --- at Unity.Services.Lobbies.Internal.WrappedLobbyService.ResolveErrorWrapping (Unity.Services.Lobbies.LobbyExceptionReason reason, System.Exception exception) [0x000b3] in <cda35441ea7e4b63805bd2a1e1256229>:0 at Unity.Services.Lobbies.Internal.WrappedLobbyService.TryCatchRequest[TRequest,TReturn] (System.String api, System.Func
3[T1,T2,TResult] func, TRequest request) [0x00160] in :0
at Unity.Services.Lobbies.Internal.WrappedLobbyService.QueryLobbiesAsync (Unity.Services.Lobbies.QueryLobbiesOptions options) [0x000ed] in :0
at LobbyManagerUI.ListLobbies () [0x0006d] in <05145be9af454219bde225a4465cde39>:0