UNET Network Discovery Hold id out of bound id {-1} max id should be greater {0} and less than {2}

Hello, I am currently working on a VR Game using UNET. I created a custom network discovery inheriting network discovery. And once the game is launched on the master when I connect with a client, I recover this error : “UNET Network Discovery Hold id out of bound id {-1} max id should be greater {0} and less than {2}”. This prevents the update of the position of the players on the server.

The following is my custom network discovery :

using
UnityEngine;
using UnityEngine.Networking;
using System.Collections;

public class CustomNetworkDiscovery : NetworkDiscovery {

    public delegate void BroadcastEvent(string fromAddress, string data);

    public event BroadcastEvent OnReceivedNetworkBroadcast = delegate { };

    override public void OnReceivedBroadcast(string fromAddress, string data)
    {
        Debug.Log("From addr " + fromAddress.ToString());
        Debug.Log("Data is " + data.ToString());
        Debug.Log("host id " + this.hostId);
     
        OnReceivedNetworkBroadcast(fromAddress, data);
    }

}

Hello, I also encountered the same problem, how do you solve this bug later