question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bugs] [react-native] [android] Sync config error callback spam call with code 336134278

See original GitHub issue

Bugs: Sync config error callback spam call with code 336134278

realm 2.2.15 react-native: 0.51.0 react-object-server: 2

similar any sync config of realm js. We build a config object and pass it to constructor of Realm when our users login.

function realmErrorHandle(obj, options) {
  console.log('=======> REALM ERR!', options);
}

  const syncConfig = {
      sync: {
        user,
        url: realmUrl(),
        error: realmErrorHandle,
      },
      path: dbLocation(userID),
      ...currentSchema,
    }

realmDB = new Realm(syncConfig)

note: all parameter being ensure correct and work well on Ios version

Expected Results

realmErrorHandle never being called and everything work expected.

Actual Results

Realm still working but realmErrorHandle be call very spamly (maybe one times per second) and does not seem to will stop.

and describe following Error:

{   
  name: 'Error',
  message: 'Unknown OpenSSL error: 336134278',
  isFatal: false,
  category: 'openssl',
  code: 336134278,
  userInfo: {} 
}

the code of error 336134278 can not be find in any Realm documents or OpenSSL documents.

We use SSL for realm object server but realm-js client worked expected without any SSL config on Ios. But unlucky, we met this error on Android.

The lastest version which dont have this error is 2.0.13

no crash

Steps to Reproduce

Happen when we register new realm user with Realm.Sync.User.registerWithProvider. When use available user realmErrorHandle hasn’t be call.

Update: This happen when first time launch application. In debug mode, If reload by double tap R, no log more!

Update:

We just upgrade realm js version to 2.2.15 but can not resolve this problem

Version of Realm and Tooling

  • Realm JS SDK Version: 2.2.15
  • Node or React Native: React Native 0.51.0
  • Client OS & Version: Mac OS 10.12.6
  • Which debugger for React Native: None

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
knethcommented, Apr 24, 2018

@Winglonelion Once https://github.com/realm/realm-js/pull/1761 is merged and released, I think you can start using HTTPS again.

0reactions
Winglonelioncommented, Apr 25, 2018

Thanks team. We will try it now!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use caller ID & spam protection - Phone app Help
On your device, open the Phone app . Tap More options More and then Settings and then Spam and Call Screen. Turn See...
Read more >
How to Block Spam Calls - The New York Times
Android : Open the Phone app, and then tap the three-dot icon in the top-right corner > Settings > Blocked numbers. Enable the...
Read more >
How To Block Unwanted Calls | Consumer Advice
How To Block Unwanted Calls ; Go to the online app store for your phone's operating system (iOS (Apple), Android, etc.) and look...
Read more >
Avoid unwanted calls with Verizon Call Filter FAQs
Get free spam blocking. Call Filter lets you screen incoming calls, block spam and report unwanted numbers. Upgrade to Call Filter Plus with...
Read more >
Xfinity Voice Features that Control Nuisance and Spam Calls
This includes neighbor spoofing, where the caller changes the calling number to match the area code and part of your phone number. Scam...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found