Custom fetchTimeout for Remote Config is ignored
See original GitHub issue[READ] Step 1: Are you in the right place?
Issues filed here should be about bugs in the code in this repository. If you have a general question, need help debugging, or fall into some other category use one of these other channels:
- For general technical questions, post a question on StackOverflow with the firebase tag.
- For general Firebase discussion, use the firebase-talk google group.
- For help troubleshooting your application that does not fall under one of the above categories, reach out to the personalized Firebase support channel.
[REQUIRED] Step 2: Describe your environment
- Android Studio version: Android Studio Arctic Fox | 2020.3.1 Patch 3
- Firebase Component: Remote Config
- Component version: 21.0.1
[REQUIRED] Step 3: Describe the problem
I set firebase remote config fetch timeout to 5 seconds, but it is ignored and default one (60 seconds) is used. To test this I setup charles proxy with following throttling configuration:
Steps to reproduce:
- Setup proxy to delay all communication for 100 seconds
- Run app with timeout set to 5 seconds
- FirebaseRemoteConfig.fetch blocks for around 60 seconds
Relevant Code:
val firebaseRemoteConfig = FirebaseRemoteConfig.getInstance()
firebaseRemoteConfig.setConfigSettingsAsync(
FirebaseRemoteConfigSettings.Builder()
.setFetchTimeoutInSeconds(5)
.build()
).await()
firebaseRemoteConfig.fetch(remoteConfigFetchInterval).await()
firebaseRemoteConfig.activate().await()
private fun <T> Task<T>.await() = Tasks.await(this)
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:14 (7 by maintainers)
Top Results From Across the Web
Fetching Remote Config fails only in iOS / Flutter
I have setup Firebase Remote Config for my Flutter application. ... setConfigSettings(RemoteConfigSettings( fetchTimeout: const ...
Read more >Firebase Remote Config loading strategies - Google
Strategy 1: Fetch and activate on load · Strategy 2: Activate behind loading screen · Strategy 3: Load new values for next startup...
Read more >Configuration - Spark 3.3.1 Documentation - Apache Spark
spark.jars.repositories, Comma-separated list of additional remote repositories to ... This setting is ignored for jobs generated through Spark Streaming's ...
Read more >B4i Library Firebase RemoteConfig - B4X Programming Forum
ConfigSettings As FirebaseRemoteConfigSettings. Set custom config settings. · Defaults As Map Sets config defaults for parameter keys and values ...
Read more >Kafka Broker Configurations for Confluent Platform
Name of listener used for communication between controller and brokers. ... This configuration is ignored if log.message.timestamp.type=LogAppendTime.
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 FreeTop 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
Top GitHub Comments
Hi @adam2603 thanks for reporting. I’ll try to replicate this and see what we can do here.
This is still happening - at least on
21.2.0
. Sometimes (very very rarely) eachfetchAndActivate()
takes 20 seconds on my Pixel 4a. No amount of process restarts will fix it. It just takes 20 seconds every time. SettingsetFetchTimeoutInSeconds()
to for example 5 seconds doesn’t help at all. It seems that the Firebase service is somehow “stuck”, maybe the connection works as expected but some other parts of the Firebase Config code now cause a large delay. Rebooting my device has fixed the huge 20+ second delays. So this confirms that it’s a Firebase service issue on the device (since uninstalls or process restarts didn’t fix it, only device reboot).