Search Issue Tracker
By Design
Votes
1
Found in [Package]
3.0.0-pre.11
Issue ID
1396049
Regression
No
[Remote Config] ConfigOrigin.Cached switch case is not used when the Internet is turned off
Reproduction steps:
1. Open project "RemoteConfigBug"
2. Open Scenes > SampleScene
3. Open Remote Config Window
4. Add a setting with Key: interstitialAdsFrequency, Type: int, Value: 70
5. Enter Play Mode
6. Wait for "True" and "70" to show up in the Console and exit Play Mode
7. Turn off the Internet
8. Enter Play Mode and wait for 10 seconds
Expected result: "No settings loaded this session; using cached values from a previous session." is printed in the Console
Actual result: Error is printed to the Console: "Curl error 28: Operation timed out after 10000 milliseconds with 0 bytes received"
Reproducible with: 2.1.2, 3.0.0-pre.11 (2020.3.30f1, 2021.2.13f1, 2022.1.0b9, 2022.2.0a8)
Could not test with: 2.1.2, 3.0.0-pre.11 (2019.4.36f1, Compilation errors)
The code used to test this behavior:
switch (configResponse.requestOrigin) {
case ConfigOrigin.Default:
Debug.Log("No settings loaded this session; using default values.");
break;
case ConfigOrigin.Cached:
Debug.Log("No settings loaded this session; using cached values from a previous session.");
break;
case ConfigOrigin.Remote:
Debug.Log(ConfigManager.appConfig.HasKey("interstitialAdsFrequency").ToString());
Debug.Log(ConfigManager.appConfig.GetInt("interstitialAdsFrequency").ToString());
_interstitialAdsFrequency = ConfigManager.appConfig.GetInt("interstitialAdsFrequency", DefaultInterstitialAdsFrequency);
assignmentId = ConfigManager.appConfig.assignmentId;
break;
}
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Fixing Message Loss in UMPE During Domain Reload
- The Editor freezes when ScheduleReadOnly of IJobParallelForTransform with dependency is used
- Text is truncated in the Inspector when the display scale is set to 150%
- CancellationTokenSource(<timeout>) has incorrect cancellation status when used in WebGL Player
- VFX property value names are cut off when properties with 'Arc' are viewed in the VFX Blackboard
Add comment