realm / realm-js

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

[Realm.Sync.Client.Network] Websocket error #6867

Open rossicler-hostalky opened 2 weeks ago

rossicler-hostalky commented 2 weeks ago

How frequently does the bug occur?

Sometimes

Description

From time to time Realm Sync get disconnected. This doesn't seem to make the sync to stop, as it probably "restore" the sync after that, but I've been having some delays for my realm app to sync data and this might be one of the causes.

I'm not sure if the sync delay is related to this, but I'll explain it here just in case.

I've noticed the sync delay when doing a group testing between some team members, and the sync "stopped working" for 1~3 minutes, then it all came back at once for everyone at the same time. That was a one time incident that we noticed, but since we don't do many group testing, it might happen more occasionally without our knowledge.

Stacktrace & log output

[Realm.Sync.Client.Network - error] Websocket: Expected HTTP response 101 Switching Protocols, but received:
HTTP/1.1 503 Service Unavailable
connection: close
content-length: 98
content-type: text/plain
date: Wed, 21 Aug 2024 20:00:12 GMT
server: mdbws

upstream connect error or disconnect/reset before headers. reset reason: remote connection failure

Can you reproduce the bug?

Sometimes

Reproduction Steps

No response

Version

12.11.1

What services are you using?

Atlas Device Sync

Are you using encryption?

Yes

Platform OS and version(s)

iOS/Android

Build environment

Which debugger for React Native: ..

Cocoapods version

No response

sync-by-unito[bot] commented 2 weeks ago

➤ PM Bot commented:

Jira ticket: RJS-2896