Photon and WebGL random error sending data

So first off Thanks for any help…

I’m using Photon with a webgl build. randomly when switching scenes i am receiving this error…

Exiting receive thread (inside loop). Server: wss://SLWASH002.exitgames.com:19090:0 Error: An error has occurred in sending data.
    UnityEngine.Debug:LogError(Object)
    NetworkingPeer:DebugReturn(DebugLevel, String) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/NetworkingPeer.cs:1486)
    ExitGames.Client.Photon.<ReceiveLoop>c__Iterator23:MoveNext() (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/SocketWebTcp.cs:209)

The error typically only happens in the build version… but from time to time it does happen in the editor.

I have tried searching here googling and talking with others and i cant seem to figure it out.
Thanks Again,
Aaron

I have the same problem, can anyone help us?

I’ve the same problem, any solution for this problem?

For anyone experiencing this issue => Exiting receive thread (inside loop). Server: XXXXX

Here is the solutions that have worked for our team:

Check to see if the scene that you are loading is not MASSIVE in size.

Check to see if the scene being loaded is not sending/receiving data in the first frame (Wait a while before sending/receiving sync information with Photon).

TO TEST AND SEE IF THIS IS THE CASE:

Create a FULLY EMPTY dummy scene in unity and add it to the build settings

Connect to Photon and try and use that EMPTY scene to see if works (Which it most likely should). This will alert you that your issue lies in the scene you were trying to load (Due to one of the above items OR something else in that specific scene).

Hope the above solution helps out others going through the same issues!

Nav Gupta => Former Unity 3D Live Help Expert Team Member and now Founder and CEO of Chaarmi Worlds Inc. making the future metaverse!! Check us out at Chaarmi.com!