[Bugs] [react-native] [android] Sync config error callback spam call with code 336134278
See original GitHub issueBugs: 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:
- Created 5 years ago
- Reactions:1
- Comments:9 (4 by maintainers)
Top GitHub Comments
@Winglonelion Once https://github.com/realm/realm-js/pull/1761 is merged and released, I think you can start using HTTPS again.
Thanks team. We will try it now!