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

Realm Sync - Realm cannot be opened and times out if local device time in future

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None

      How frequently does the bug occur?

      All the time

      Description

      Expectation: If device time is in the future, I can open the realm.

      Reality: If device time is in the future, opening the realm fails and times out.
      The error logged is: [Error: undefined could not be downloaded in the allocated time: 60000 ms.]

      Code to Replicate:

      Realm.open(X)
      .then(realm =>

      { console.log('Realm Resolved'); realm.close(); resolve('complete'); }

      )
      .catch(e =>

      { console.log('Realm Error', e); reject(e); }

      );
      });

      Also tested same code with correct time and no issue occurs

      Stacktrace & log output

      No response

      Can you reproduce the bug?

      Yes, always

      Reproduction Steps

      No response

      Version

      10.6.0

      What SDK flavour are you using?

      MongoDB Realm (i.e. Sync, auth, functions)

      Are you using encryption?

      Yes, using encryption

      Platform OS and version(s)

      Android

      Build environment

      Which debugger for React Native: ..

            Assignee:
            kenneth.geisshirt@mongodb.com Kenneth Geisshirt (Inactive)
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: