Uploaded image for project: 'Realm JavaScript SDK'
  1. Realm JavaScript SDK
  2. RJS-2896

[Realm.Sync.Client.Network] Websocket error

      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

      Unable to find source-code formatter for language: shell. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      [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

            Assignee:
            Unassigned Unassigned
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: