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.

Remote Config HTTP errors for some RTL locales

See original GitHub issue

Environment

  • 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:closed
  • Created a year ago
  • Reactions:6
  • Comments:17 (7 by maintainers)

github_iconTop GitHub Comments

18reactions
danasilvercommented, Jul 18, 2022

Yep! You beat me to it @JonasTrikiSPV! 😄 This is fixed in Remote Config v21.1.1 and Firebase BOM v30.3.0. Thanks everyone.

9reactions
danasilvercommented, Jul 7, 2022

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!

Read more comments on GitHub >

github_iconTop 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 >

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