The operation couldn't be completed. (com.google.remoteconfig.ErrorDomain error 8002.)

Podfile.lock
- Firebase/Core (4.9.0):
- FirebaseAnalytics (= 4.0.9)
- FirebaseCore (= 4.0.15)
- Firebase/RemoteConfig (4.9.0):
- Firebase/Core
- FirebaseRemoteConfig (= 2.1.2)
- FirebaseRemoteConfig (2.1.2):
- FirebaseABTesting (~> 1.0)
- FirebaseAnalytics (~> 4.0)
- FirebaseCore (~> 4.0)
- FirebaseInstanceID (~> 2.0)
- GoogleToolboxForMac/NSData+zlib (~> 2.1)
- Protobuf (~> 3.1)
iOS 11.1
RN 0.53.3
RN Firebase 3.2.7
Mac OS X 10.12.6
It only happens with the remote debugger enabled
@maggialejandro can you provide your Remote Config JS code that you're running?
I call fetch when app starts
// @flow
/* eslint-disable flowtype/no-weak-types */
import firebase from 'react-native-firebase';
const config = firebase.config();
export default class RemoteConfig {
constructor() {
// eslint-disable-next-line
if (__DEV__) {
config.enableDeveloperMode();
}
}
static fetch(): Promise<*> {
return new Promise((resolve: Function, reject: Function) => {
config.fetch(0)
.then((): Promise<*> => config.activateFetched())
.then((activated: boolean): Promise<*> => {
if (!activated) {
return reject(new Error('Fetched data not activated'));
}
return config.getKeysByPrefix();
})
.then((keys: Array<string>): Promise<*> => config.getValues(keys))
.then((objects: Object): Object => {
const configurations = {};
Object.keys(objects).forEach((key: string) => {
configurations[key] = objects[key].val();
});
return resolve(configurations);
})
.catch((e: Error) => {
console.error(e);
reject(e);
});
});
}
}
@maggialejandro is that red box getting triggered by your own console.error or is it happening internally?
P.S. You don't need to wrap a new Promise around your logic, as it already returns a promise :)
@maggialejandro what was the solution?
@Ehesp I misspelled the log function, the error remains but the red window isn't triggered anymore
I got this error when i try to change remote config value on firebase
My firebase version is 5.3.1
2018-11-08 20:46:12.454328+0700 test[2495:545746] ERROR: Remote Config: Fetch encountered an error: The operation couldn鈥毭劽磘 be completed. (com.google.remoteconfig.ErrorDomain error 8002.)
Remote Config: Fetch encountered an error: The operation couldn鈥檛 be completed. (com.google.remoteconfig.ErrorDomain error 8002.)
started getting this error now.
How often do you call the service and what cache are you using?
Most helpful comment
@maggialejandro is that red box getting triggered by your own
console.erroror is it happening internally?P.S. You don't need to wrap a
new Promisearound your logic, as it already returns a promise :)