You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a confusing problem where my Unity android build mysteriously stopped connecting to my glitch server. Earlier today, it worked fine. As of this evening, it silently fails without any output. For reference, this is how I'm opening my connection: websocket = new WebSocket("ws://" + m_ServerIp, new Dictionary<string, string>() { { "User-Agent", "Unity3D" } });
but websocket.OnOpen() or websocket.OnError() are never called.
The code itself hasn't changed. So I'm running on weird theories like my android device updated itself and is now blocking the connection. Or perhaps glitch has changed something on the backend that is now causing the connection to fail (again only from an android build. Everything else seems fine).
Any suggestions on what might be going wrong, or how to better debug this? The silent failure has me stumped. Thx!
The text was updated successfully, but these errors were encountered:
Glitch turns off its servers per inactivity, it can take a few minutes for Glitch to turn them on by request. This library does not have any mechanism to retry on failed connection attempts.
I suspected something similar, but verified that I could log into the server and send/receive messages from Unity Editor and the browser during the period when my android device wasn't working.
If it happens again, is there any way to get more detailed log info about what might be happening? Thx for the response.
I have a confusing problem where my Unity android build mysteriously stopped connecting to my glitch server. Earlier today, it worked fine. As of this evening, it silently fails without any output. For reference, this is how I'm opening my connection:
websocket = new WebSocket("ws://" + m_ServerIp, new Dictionary<string, string>() { { "User-Agent", "Unity3D" } });
but
websocket.OnOpen()
orwebsocket.OnError()
are never called.The code itself hasn't changed. So I'm running on weird theories like my android device updated itself and is now blocking the connection. Or perhaps glitch has changed something on the backend that is now causing the connection to fail (again only from an android build. Everything else seems fine).
Any suggestions on what might be going wrong, or how to better debug this? The silent failure has me stumped. Thx!
The text was updated successfully, but these errors were encountered: