Realm keeps disconnecting

I’m calling the .login method with email and password for authentication purposes, and I keep getting the following disconnection errors:

2021-03-26 22:51:39.604324-0700 CoherenceIOS[45507:3835499] Sync: Connection[1]: Session[1]: client_reset_config = false, Realm exists = true, async open = false, client reset = false
2021-03-26 22:51:39.655547-0700 CoherenceIOS[45507:3835419] [tcp] tcp_input [C2.1:3] flags=[R] seq=819833923, ack=0, win=0 state=CLOSED rcv_nxt=819833923, snd_una=2662663736
2021-03-26 22:51:39.655702-0700 CoherenceIOS[45507:3835499] Sync: Connection[1]: Connected to endpoint '54.212.159.174:443' (from '10.0.0.158:52499')
2021-03-26 22:51:42.802398-0700 CoherenceIOS[45507:3835499] Sync: Connection[1]: Disconnected
2021-03-26 22:51:42.804469-0700 CoherenceIOS[45507:3835499] Sync: Connection[2]: Session[2]: client_reset_config = false, Realm exists = true, async open = false, client reset = false
2021-03-26 22:51:43.766450-0700 CoherenceIOS[45507:3835499] Sync: Connection[2]: Connected to endpoint '54.212.159.174:443' (from '10.0.0.158:52500')
2021-03-26 22:51:50.941830-0700 CoherenceIOS[45507:3835499] Sync: Connection[2]: Disconnected

It looks like it connects and then instantly disconnects from Realm. Any ideas on why this might be happening?

Thanks so much!

Figured this one out – I had a schema validation error that I was able to locate by printing variables in my subscriber.

1 Like

Can you explain a little more how you resolved this? I am having the same issue.