i got this error always

can i remove this error??

Cannot send op: 229 Not connected. PeerState: Disconnected
UnityEngine.Debug:LogError(Object)
NetworkingPeer:DebugReturn(DebugLevel, String) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/NetworkingPeer.cs:1574)
ExitGames.Client.Photon.EnetPeer:EnqueueOperation(Dictionary`2, Byte, Boolean, Byte, Boolean, EgMessageType)
ExitGames.Client.Photon.PeerBase:EnqueueOperation(Dictionary`2, Byte, Boolean, Byte, Boolean)
ExitGames.Client.Photon.PhotonPeer:OpCustom(Byte, Dictionary`2, Boolean, Byte)
ExitGames.Client.Photon.PhotonPeer:OpCustom(Byte, Dictionary`2, Boolean)
LoadBalancingPeer:OpJoinLobby(TypedLobby) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/LoadbalancingPeer.cs:90)
PhotonNetwork:JoinLobby(TypedLobby) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/PhotonNetwork.cs:2106)
PhotonManager:JoinLobby() (at Assets/02.Scripts/PhotonManager.cs:78)
PhotonManager:OnLeftLobby() (at Assets/02.Scripts/PhotonManager.cs:89)
UnityEngine.GameObject:SendMessage(String, Object, SendMessageOptions)
NetworkingPeer:SendMonoMessage(PhotonNetworkingMessage, Object[]) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/NetworkingPeer.cs:2838)
NetworkingPeer:LeftLobbyCleanup() (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/NetworkingPeer.cs:1133)
NetworkingPeer:OnStatusChanged(StatusCode) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/NetworkingPeer.cs:2171)
ExitGames.Client.Photon.<>c__DisplayClass146_0:b__0()
ExitGames.Client.Photon.EnetPeer:DispatchIncomingCommands()
ExitGames.Client.Photon.PhotonPeer:DispatchIncomingCommands()
PhotonHandler:Update() (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/PhotonHandler.cs:158)

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    Hi @SungJinKang,

    Thank you for choosing Photon:

    You are trying to join a lobby while not connected.
    This could happen because you are connection process did not finish or because it failed or because you got disconnected.

    From the stack trace it looks like you are calling "PhotonManager:JoinLobby()" inside "PhotonManager:OnLeftLobby()".