Realm-js : Open Synced Realm in Cloud never Completes



Code/Log Snippet

In the below image, I showcase the code that implemented to:

  1. Login the realm-admin
  2. Use the resolved User to open the realm
  3. Lastly fetch Dogs, set up listener, and set the state status to ‘Loaded’

In addition the log on the right tells us the following:

  1. ‘opening realm’ is logged
  2. But neither the reject nor the resolve takes place
  3. As indicated by no additional logging by my catch
  4. As well as by the fact that that ‘realm opened’ is not logged

My only clue is the ‘Setting a timer for a long period of time’. No idea what that indicates about any issues with opening a Synced Realm that is in Cloud.


As an aside below is an image:

  1. Showcasing the Cloud instance as seen by Realm Studio.
  2. Our realm-admin user and his 1 realm
  3. And our React Native app where the Status is still ‘Loading’


@509dave16 This is unexpected behavior - can you file an issue here:

with your code snippet please and cc @ianpward

Would also be great to see the debug logs on the server side


Was there ever any resolution on this? I’m experiencing exactly the same issue. Any help would be appreciated!


@tomsjansons There is an issue with RN accessing the Android certificate Truststore so a quick fix is to just disable SSL validation in the config like this:

let config = {
                sync: {
                    user: user,
                    url: 'realms://' +loginData.server +'/default',
                    partial: true, 
                    error: (session, error) => console.log(error)
                schema: [ChatItem, ChatRoom]