PUN v1.6 OnPhotonJoinRoomFailed gives error code of -1 (InternalServerError) only in WebGL build
I've successfully implemented a rejoining feature in my game by checking the error code from the object[] parameter in OnPhotonJoinRoomFailed.
In the Unity editor, this works perfectly. I get the correct error code 32749 (JoinFailedFoundInactiveJoiner) or 32746 (JoinFailedFoundActiveJoiner) and attempt to join again.
However, in WebGL the error code is -1 (for InternalServerError). What's weird is that I still get the correct message of "Found inactive UserID '<USER_ID>', but not rejoining (JoinMode=0)"
Comments
-
PUN 1.6? Please update to latest PUN 2. We can't really support PUN Classic for anything but existing games.
Internal Server Error is not good. This is not a known issue, so maybe a later PUN version fixed this (I don't recall the issue). Please update and repro. Then we can have a look at recent code.
0