realm / realm-js

Realm is a mobile database: an alternative to SQLite & key-value stores
https://realm.io
Apache License 2.0
5.69k stars 563 forks source link

SyncError: WebSocket: Read Error: Connection reset by peer | React Native Expo #5997

Open njmulsqb opened 1 year ago

njmulsqb commented 1 year ago

How frequently does the bug occur?

Always

Description

When some inactivity happens on the emulator, the console starts showing the error SyncError: WebSocket: Read Error: Connection reset by peer and in some cases it wont go away and keep crashing the app until unless I delete the mongo realm files from the disk of emulator and rebuild the project. What is causing this issue and how can this be avoided?

Stacktrace & log output

No response

Can you reproduce the bug?

Always

Reproduction Steps

Leave the app inactive for sometime

Version

11.8.0

What services are you using?

Both Atlas Device Sync and Atlas App Services

Are you using encryption?

No

Platform OS and version(s)

React Native Expo 48.0.0

Build environment

Which debugger for React Native: ..

Cocoapods version

No response

takameyer commented 1 year ago

@njmulsqb Thanks for submitting this issue. Is there anything in particular you are doing to provoke this error? If you can create a repo to reproduce this that would be appreciated.

njmulsqb commented 1 year ago

Hi @takameyer,

No, this error appears when I keep the app idle, unfortunately cant create a repo and share code as its a huge private codebase I am working on

kneth commented 11 months ago

I will leave the issue open and hope you will be able to reproduce it at some point.