Cannot send op: 252 Not connected. PeerState: Disconnected

My game was running well few days ago. Recently I am getting this message when joining a room

Cannot send op: 252 Not connected. PeerState: Disconnected

Can you guys give some advice how to debug this?

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    Hi @Soikot,

    Thank you for choosing Photon!

    First of all, always include the client SDK you use and its version to add more context to your inquiry.
    I assume you use a C# SDK and most probably PUN.

    Here is what this log entry means:

    - 252 operation code is for SetProperties
    - A client can send operation requests to the server only when connected to a server. Besides, each server has a set of supported properties, e.g. SetProperties work only on Game Server and not on Master Server. Also, some properties can be called only after a certain state has been entered. In this case, SetProperties can be called only when joined to a room.

    So you must be trying to call SetProperties (room or actor properties) too soon before the client has fully joined the room. You need to wait for the room joined callback to be triggered before setting properties.