在获取远程配置值时,我已经开始从Firebase收到503服务不可用错误。
Fetch failed! Server responded with an error.
com.google.android.gms.internal.firebase_remote_config.zzd: 503 Service Unavailable
{
"code": 503,
"errors": [
{
"domain": "global",
"message": "The service is currently unavailable.",
"reason": "backendError"
}
],
"message": "The service is currently unavailable.",
"status": "UNAVAILABLE"
}
我有火力爆发计划,并且此错误不断出现。我认为它是在升级到最新的Firebase远程配置库后开始的。
long cacheExpiration = 4800;
if (firebaseRemoteConfig.getInfo().getConfigSettings().isDeveloperModeEnabled()) {
cacheExpiration = 2;
}
firebaseRemoteConfig.fetch(cacheExpiration)
.addOnCompleteListener(this, task -> {
})
.addOnFailureListener(e -> {
});
我当前正在使用的当前Firebase依赖项是
implementation 'com.google.firebase:firebase-config:16.4.1'
implementation 'com.google.firebase:firebase-messaging:17.5.0'
implementation "com.google.android.gms:play-services-auth:16.0.1"
implementation 'com.google.firebase:firebase-storage:16.1.0'
答案 0 :(得分:0)
您需要升级 Firebase CDN。 面临同样的问题,我刚刚升级了我的 firebase 并且它起作用了。 https://github.com/firebase/firebase-tools/issues/913