Remote Config HTTP errors for some RTL locales
See original GitHub issueEnvironment
- Android Studio version: Android Studio Chipmunk | 2021.2.1 Patch 1
- Firebase Component: Remote Config
- Component version: firebase-bom:30.1.0
The problem
I have an application that supports multiple locals languages and remote configurations work fine with any LTR language (EN, FR, etc) but it gives me FirebaseRemoteConfigServerException in all the RTL languages (I have tried Arabic, Urdu and Persian)
Steps to reproduce:
Just setting the apps locale to any RTL language will give this error. FirebaseRemoteConfigServerException: Fetch failed: The server returned an unexpected error. 400 bad request
Relevant Code:
private val remoteConfig by lazy {
val settings = remoteConfigSettings {
minimumFetchIntervalInSeconds = if (BuildConfig.DEBUG) {
0
} else {
60 * 30
}
}
val defaults = mutableMapOf<String, Any>(
"a" to true,
"b" to true
)
Firebase.remoteConfig.apply {
setConfigSettingsAsync(settings)
setDefaultsAsync(defaults)
}
}
fun init() {
loadSettings()
}
private fun loadSettings() {
remoteConfig.fetchAndActivate()
.addOnSuccessListener {
Toast.makeText(context, "Done", Toast.LENGTH_SHORT).show()
}.addOnFailureListener {
Toast.makeText(context, "$it", Toast.LENGTH_SHORT).show()
}
}
and in my application
override fun onCreate() {
super.onCreate()
remoteConfigUtil.init()
...
}
Issue Analytics
- State:
- Created a year ago
- Reactions:6
- Comments:17 (7 by maintainers)
Top Results From Across the Web
Firebase Remote Config - Google
You can make changes to your app's default behavior and appearance by changing server-side parameter values. For example, you could use a Remote...
Read more >RTL-SDR Tutorial: Setting up and using the SpyServer ...
Running a SpyServer allows you to connect to and use a remotely positioned RTL-SDR over a network connection (such as a local LAN/WiFi...
Read more >Safari Technology Preview Release Notes - Apple Developer
Fixed error message for local.get (256176@main) ... Fixed no VP9-SVS video stream from remote peer on some devices (r287928); Fixed “Add to Contact”...
Read more >Synopsys Identify® Microsemi Edition Debugger User Guide
Synopsys and certain Synopsys product names are trademarks of Synopsys, ... back the data pattern written to detect configuration errors, connectivity.
Read more >docusaurus.config.js
API reference for Docusaurus configuration file. ... displayed for this locale in the locales dropdown. direction : ltr (default) or rtl ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yep! You beat me to it @JonasTrikiSPV! 😄 This is fixed in Remote Config v21.1.1 and Firebase BOM v30.3.0. Thanks everyone.
Thanks for your patience, everyone. We’ll be releasing the new version of the SDK with the fix next week and in the meantime have marked v21.1.0 as deprecated. We recommend using the previous version of Remote Config (v21.0.2) in the meantime, which does not contain this bug.
I’ll update this issue once that new version is live. Thanks!