Mac App: Writing failed: Connection reset by peer


#1

Hey Realm Cloud team,

First of all - thanks for letting me in for beta testing. You guys are doing awesome job!

I’m having a problem, with realm open, previously I had it on EC2, and it worked well. Once I switched to realm cloud it logs in without issues, but it’s having problem on Realm.asyncOpen.

Logs:

2018-02-23 13:39:59.824708+0100 Pomhealo Mac[10424:297605] Sync: Connection[1]: Connected to endpoint 'ADDRESS_GOES_HERE:80' (from '192.168.2.8:54564')
2018-02-23 13:40:00.052926+0100 Pomhealo Mac[10424:297605] Sync: Connection[1]: Writing failed: Connection reset by peer
2018-02-23 13:40:00.053195+0100 Pomhealo Mac[10424:297605] Sync: Connection[1]: Connection closed due to error
2018-02-23 13:40:00.845040+0100 Pomhealo Mac[10424:297605] Sync: Connection[1]: Connected to endpoint 'ADDRESS_GOES_HERE:80' (from '192.168.2.8:54565')
2018-02-23 13:40:01.152240+0100 Pomhealo Mac[10424:297605] Sync: Connection[1]: Writing failed: Connection reset by peer
2018-02-23 13:40:01.152334+0100 Pomhealo Mac[10424:297605] Sync: Connection[1]: Connection closed due to error
2018-02-23 13:40:01.869085+0100 Pomhealo Mac[10424:297605] Sync: Connection[1]: Connected to endpoint 'ADDRESS_GOES_HERE:80' (from '192.168.2.8:54566')
2018-02-23 13:40:02.177116+0100 Pomhealo Mac[10424:297605] Sync: Connection[1]: Writing failed: Connection reset by peer
2018-02-23 13:40:02.177289+0100 Pomhealo Mac[10424:297605] Sync: Connection[1]: Connection closed due to error
2018-02-23 13:40:02.790752+0100 Pomhealo Mac[10424:297605] Sync: Connection[1]: Connected to endpoint 'ADDRESS_GOES_HERE:80' (from '192.168.2.8:54567')
2018-02-23 13:40:03.098683+0100 Pomhealo Mac[10424:297605] Sync: Connection[1]: Writing failed: Connection reset by peer
2018-02-23 13:40:03.098797+0100 Pomhealo Mac[10424:297605] Sync: Connection[1]: Connection closed due to error
2018-02-23 13:40:03.610015+0100 Pomhealo Mac[10424:297605] Sync: Connection[1]: Connected to endpoint 'ADDRESS_GOES_HERE:80' (from '192.168.2.8:54568')
2018-02-23 13:40:03.917962+0100 Pomhealo Mac[10424:297605] Sync: Connection[1]: Writing failed: Connection reset by peer
2018-02-23 13:40:03.918083+0100 Pomhealo Mac[10424:297605] Sync: Connection[1]: Connection closed due to error
2018-02-23 13:40:04.532346+0100 Pomhealo Mac[10424:297605] Sync: Connection[1]: Connected to endpoint 'ADDRESS_GOES_HERE:80' (from '192.168.2.8:54569')
2018-02-23 13:40:04.761674+0100 Pomhealo Mac[10424:297605] Sync: Connection[1]: Writing failed: Connection reset by peer
2018-02-23 13:40:04.761752+0100 Pomhealo Mac[10424:297605] Sync: Connection[1]: Connection closed due to error

#2

Hi,

It looks to me like the Realm Cloud end-point address isn’t actually set correctly. Could you post the code fragment you’re using that you’re using to open the Realm (and the values of your realm auth and sync URLs)?

Typically a Realm Cloud endpoint address would look like this: https://myAppName.us1.clould.realm.io - Additionally, Realm Cloud connections are done over https (port 443) and not via unencrypted HTTP (port 80).

regards,
David


David Spector, Product Manager, Realm, Inc.
148 Townsend St, San Francisco, CA 94107
[email protected] 631-827-3132 http://realm.io


#3

Actually the problem was in using realm prefix instead of realms :wink:

Thanks for reply