OnJoinRoomFailed: Unknown operation code 226

Options
After updating to Unity 2019.3.0f6 from previous version, with no changes to code, PhotonNetwork.JoinOrCreateRoom fails with the following error message:

Unknown operation code 226

The return code is -1.

My join/create room call:

PhotonNetwork.JoinOrCreateRoom("scene01", new RoomOptions() { EmptyRoomTtl = 300000 }, null);

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    Hi @damdai,

    Thank you for choosing Photon!

    I think you're maybe using a Photon Chat AppId instead of a PUN or Photon Realtime AppId.

    Or, less likely, you are trying to call JoinOrCreateRoom on the wrong server, before OnConnectedToMaster or while joined to a room.
  • damdai
    Options
    I'm dumb. The upgrade forced me to rerun the PUN wizard and I accidentally swapped the chat and realtime IDs. Perhaps a better error message is possible here? Thanks for the help!