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.

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: Screenshot 2021-10-20 at 12 29 08

Steps to reproduce:

  1. Setup proxy to delay all communication for 100 seconds
  2. Run app with timeout set to 5 seconds
  3. 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:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
aguatnocommented, Oct 21, 2021

Hi @adam2603 thanks for reporting. I’ll try to replicate this and see what we can do here.

0reactions
DanielNovakcommented, Dec 5, 2022

This is still happening - at least on 21.2.0. Sometimes (very very rarely) each fetchAndActivate() takes 20 seconds on my Pixel 4a. No amount of process restarts will fix it. It just takes 20 seconds every time. Setting setFetchTimeoutInSeconds() 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).

Read more comments on GitHub >

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

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