Mac App: Writing failed: Connection reset by peer

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

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
ds@realm.io 631-827-3132 http://realm.io

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

Thanks for reply

My Mac application gets crashed whenever I try to write a single code on it. I don’t understand that why this happen and what’s the solution of it. It always shows “contact the apple application support for more information” but I don’t understand what’s the actual cause behind this. Does anyone knows how can I resolve it or have any idea regarding that?

@jimmy_johnson

Your question is quite vague and doesn’t appear to be related to the question you replied to (which is 2 years old). For assistance, create a new thread and include the code that appears to be crashing, what troubleshooting steps you’ve done and your applicable Realm models. Be sure to add a breakpoint to your code and step through it line by line until something goes wrong, and indicate what line that is.