How long does Firebase throttle you?
Asked Answered
A

3

12

Even with debug enabled for RemoteConfig, I still managed to get the following:

Error fetching remote config values Optional(Error Domain=com.google.remoteconfig.ErrorDomain Code=8002 "(null)" UserInfo={error_throttled_end_time_seconds=1483110267.054194})

Here is my debug code:

let debug = FIRRemoteConfigSettings(developerModeEnabled: true)
FIRRemoteConfig.remoteConfig().configSettings = debug!

Shouldn't the above prevent throttling?

How long will the throttle error remain in effect?

Aeneas answered 30/12, 2016 at 14:53 Comment(3)
Im having the same issue, I was able to get the first value, but then it started giving me the same error, hope someone has an answer. Im also using the same debug code!Curren
Now is working for me... Not sure if it was a Firebase error or what.Curren
Hi. Did everything fix by itself? Got the same error after first success (Postexilian
C
15

I've experienced the same error due to throttling. I was calling FIRRemoteConfig.remoteConfig().fetchWithExpirationDuration with an expiry that was less than 60 seconds.

To immediately get around this issue during testing, use an alternative device. The throttling occurs against a particular device. e.g. move from your simulator to a device.

The intention is not to have a single client flooding the server with fetch requests every second. Make sensible use of the caching it offers out of the box and fetch only when necessary.

Clipboard answered 14/3, 2017 at 10:27 Comment(0)
S
5

When you receive this error, plug the value of error_throttled_end_time_seconds into an epoch converter (like this one at https://www.epochconverter.com) and it will tell you the time when throttling ends. I've tested this myself, and the throttling remains in effect for 1 hour from the first moment you are throttled. So either wait an hour or try some of the other recommendations given here.

UPDATE: Also, if you continue making config requests and receive the throttle error, the expire timeout does not increase (i.e. "you are not further penalized").

Sherly answered 17/10, 2018 at 20:44 Comment(0)
U
1

The quick and easy hack to get your app running is to delete the application and reinstall it. Firebase identifies your device as new device on reinstalling. Hope it helps and save your time.

Underslung answered 11/10, 2018 at 9:56 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.