Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

FAILURE Returned from server: ListMatch Received invalid request for appId=Invalid

Discussion in 'Multiplayer' started by nventimiglia, Jul 2, 2015.

  1. nventimiglia

    nventimiglia

    Joined:
    Sep 20, 2011
    Posts:
    153
    Breaking Error

    NullReferenceException: Object reference not set to an instance of an object
    UnityEngine.Networking.Match.ListMatchResponse.ToString () (at C:/buildslave/unity/build/Runtime/Networking/Managed/UNETInterface.cs:602)
    UnityEngine.Networking.Match.NetworkMatch+<ProcessMatchResponse>c__Iterator0`1[UnityEngine.Networking.Match.ListMatchResponse].MoveNext () (at C:/buildslave/unity/build/Runtime/Networking/Managed/MatchMakingClient.cs:298)

    Previous Error

    System.FormatException: FAILURE Returned from server: ListMatch Received invalid request for appId=Invalid
    at UnityEngine.Networking.Match.Response.Parse (System.Object obj) [0x0003e] in C:\buildslave\unity\build\Runtime\Networking\Managed\UNETInterface.cs:209
    at UnityEngine.Networking.Match.ListMatchResponse.Parse (System.Object obj) [0x00000] in C:\buildslave\unity\build\Runtime\Networking\Managed\UNETInterface.cs:607
    at UnityEngine.Networking.Match.NetworkMatch+<ProcessMatchResponse>c__Iterator0`1[UnityEngine.Networking.Match.ListMatchResponse].MoveNext () [0x0009c] in C:\buildslave\unity\build\Runtime\Networking\Managed\MatchMakingClient.cs:284
    UnityEngine.Networking.Match.<ProcessMatchResponse>c__Iterator0`1:MoveNext()

    My Code

    Code (CSharp):
    1.  
    2.              // From within a NetworkManager Behaviour
    3.             StartMatchMaker();
    4.             matchMaker.ListMatches(0, PageSize, "", response =>
    5.             {
    6.                 if (response.success)
    7.                 {
    8.                     FindTask.Result = response.matches.Select(o => ParseMatch(o)).ToArray();
    9.                     FindTask.Status = TaskStatus.Success;
    10.                 }
    11.                 else
    12.                 {
    13.                     FindTask.Exception = new Exception(response.extendedInfo);
    14.                     FindTask.Status = TaskStatus.Faulted;
    15.                 }
    16.  
    17.             });
    18.  
    - I do have my app Id in player settings
    - It was working 5 minutes ago
    - I have tried 2 different cloud id's

    Edit, The cloud website presents this error with my project (Unable to load project. (400))

     
    Last edited: Jul 3, 2015
  2. tribio

    tribio

    Joined:
    Oct 5, 2013
    Posts:
    29
    same problem, did you find a solution?
     
    nventimiglia likes this.
  3. nventimiglia

    nventimiglia

    Joined:
    Sep 20, 2011
    Posts:
    153
    No, I reported the issue and have yet to hear anything from UT.
     
  4. JeremyUnity

    JeremyUnity

    Unity Technologies

    Joined:
    Mar 4, 2014
    Posts:
    147
    What version of Unity are you using? 5.1.1p3 will provide best results since it had some fixes with regard to our matchmaker interface
     
  5. nventimiglia

    nventimiglia

    Joined:
    Sep 20, 2011
    Posts:
    153
    Thanks for reaching out JeremyUnity

    5.1.1f1

    Both website and editor say I am up to date.
     
  6. Bmandk

    Bmandk

    Joined:
    Aug 18, 2012
    Posts:
    70
    JeremyUnity likes this.
  7. tribio

    tribio

    Joined:
    Oct 5, 2013
    Posts:
    29
  8. JeremyUnity

    JeremyUnity

    Unity Technologies

    Joined:
    Mar 4, 2014
    Posts:
    147
    Thanks for the link. I should add SetProgramAppID() is no longer required starting in 5.1.1p3. It is required on previous versions however.
     
    tribio likes this.
  9. Alturis2

    Alturis2

    Joined:
    Dec 4, 2013
    Posts:
    38
    Hmmm... I am having a very similar problem:

    Running 5.5.0f3 Personal

    Code (CSharp):
    1.    
    2. NetworkMatch matchMaker;
    3. List<MatchInfoSnapshot> matches;
    4.  
    5.     public override void Update()
    6.     {
    7.         if ( Time.time >= nextUpdate )
    8.         {
    9.             nextUpdate = Time.time + 1.0f;
    10.  
    11.             if ( matchMaker == null )
    12.                 matchMaker = new NetworkMatch();
    13.  
    14.             matchMaker.ListMatches( 0, 10, "", false, 0, 0, OnMatchList );
    15. ...
    16.         }
    17.     }
    18.  
    19.     public void OnMatchList( bool success, string extendedInfo, List<MatchInfoSnapshot> newMatches )
    20.     {
    21.         if ( success && newMatches != null )
    22.         {
    23.             matches = new List<MatchInfoSnapshot>();
    24.             foreach ( MatchInfoSnapshot match in newMatches )
    25.                 matches.Add( match );
    26.         }
    27.     }
    28.  
    Causes the error:

    Code (CSharp):
    1.  
    2. NullReferenceException
    3. UnityEngine.MonoBehaviour.StartCoroutine (IEnumerator routine) (at C:/buildslave/unity/build/artifacts/generated/common/runtime/MonoBehaviourBindings.gen.cs:54)
    4. UnityEngine.Networking.Match.NetworkMatch.ListMatches (UnityEngine.Networking.Match.ListMatchRequest req, UnityEngine.Networking.Match.DataResponseDelegate`1 callback) (at C:/buildslave/unity/build/Runtime/Networking/Managed/MatchMakingClient.cs:334)
    5. UnityEngine.Networking.Match.NetworkMatch.ListMatches (Int32 startPageNumber, Int32 resultPageSize, System.String matchNameFilter, Boolean filterOutPrivateMatchesFromResults, Int32 eloScoreTarget, Int32 requestDomain, UnityEngine.Networking.Match.DataResponseDelegate`1 callback) (at C:/buildslave/unity/build/Runtime/Networking/Managed/MatchMakingClient.cs:302)
    6. MenuJoin.Update () (at Assets/Code/Menu/MenuJoin.cs:37)
    7.  
     
  10. DevPz

    DevPz

    Joined:
    Sep 26, 2013
    Posts:
    6