Folks, I'm using realm-kotlin to build an android ...
# realm
t
Folks, I'm using realm-kotlin to build an android app and recently I started having troubles running the app on offline mode. I keep getting errors while Realm tries to reestablish the sync session (Unknown 4400 Websocket Resolve Failed) and my queries doesn't resolve... Any idea on how to fix this or where should I look first? Using realm 1.10.2 now
c
It sounds like a network issue. Are you behind a proxy by any chance or on some other kind of private network? That said, it is expected that the websocket connection will fail when offline. I do believe those errors currently surface in the SyncSession error handler, but they can just be ignored in that case. Realm will automatically reestablish the connection once you are online again.
t
I was behind a vpn but the client using the app wasn't. I will give it another spin to understand what's going on on my side of things
Is it possible to get more details when this kind of error happens?
c
That looks like the underlying sync connection information. Most likely it doesn’t know exactly what is wrong. You can try to set
RealmLog.level = LogLevel.ALL
Then you should get all the information in the logs we know about the connection.
t
Got it, thanks Christian
👍 1