title: Firebase - remote config on web sometimes gets values and sometimes not
body: <p>I'm new to programming in Javascript (I haven't even been programming for a month, but I have experience in other non-asynchronous languages).</p>
  <p>I'm having trouble connecting the Firebase config to my website, sometimes it shows values, other times it doesn't.</p>
  <code>
    
  <pre><code>if (app_data) {
      console.log(&quot;Step 0&quot;);
      remoteConfig = getRemoteConfig(app_data);
      remoteConfig.settings.minimumFetchIntervalMillis = 10000;
    } else {
      console.log(&quot;No se ha podido conectar a la base de datos.&quot;);
    }
  
    if (fetchAndActivate(remoteConfig)) {
      console.log(&quot;Paso por 2&quot;);
      obj_config = getAll(remoteConfig);
      console.log(&quot;Paso por 3&quot;);
      Object.entries(obj_config).forEach((x) =&gt; {
        const [key, entry] = x;
        if (key === &quot;contract_address&quot;) {
          contract_token = entry[&quot;_value&quot;];
          console.log(&quot;Key Address: &quot;, entry[&quot;_value&quot;]);
        }
        console.log(&quot;Key: &quot;, key);
        console.log(&quot;Source: &quot;, entry.getSource());
        console.log(&quot;Value: &quot;, JSON.stringify(entry[&quot;_value&quot;]));
      });
      
    }
  </code></pre>
  </code>
  <p>If someone could help me, I would be very grateful.</p>
  <p>Greetings</p>