Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on Dec 8, 2022, between 7 am & 7 pm EST, in the DOTS Dev Blitz Day 2022 - Q&A forum, Discord, and Unity3D Subreddit to learn more about DOTS directly from the Unity Developers.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Bug Curl errors

Discussion in 'Unity Remote Config' started by optimise, Dec 16, 2021.

  1. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    1,528
    Recently I keep getting the following error but remote config still working properly but I think it's still better to solve the errors.

    Curl error 28: Failed to connect to cdp.cloud.unity3d.com port 443: Connection timed out
    Curl error 6: Could not resolve host: cdp.cloud.unity3d.com
     
  2. SebT_Unity

    SebT_Unity

    Unity Technologies

    Joined:
    Jun 21, 2021
    Posts:
    151
    Hi Optimise,

    Thanks for posting on the forums.
    When possible can you share the version of Remote Config you are using? Does the error come up when you start your application only or during the fetch of the values?

    Best,
    Sebastiano
     
  3. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    1,528
    @Unity_SebT I'm using remote config 3.0.0-pre.8. Seems like during fetch the values and after fetch the values still keep logging error few times. I guess timing of error log is quite random.
     
  4. SebT_Unity

    SebT_Unity

    Unity Technologies

    Joined:
    Jun 21, 2021
    Posts:
    151
    Hi Optimise,
    When you have some time can you try the following.
    1. Close the Unity editor
    2. Go to your project folder.
    3. Locate the Library folder
    4. Locate Package Cache folder
    5. See if you can find "com.unity.remote-config@X.X.X"
    6. Make a copy of the folders you find that have remote-config in the folder names
    7. Delete the folders
    8. Restart Unity editor
    Let me know if it helps with the errors. If not I will continue digging.

    Best,
    Seb
     
  5. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    1,528
    Just let u know the error I didn't see those errors at editor. Currently I see it at Android build and Windows build. Seems like it will only happen at real build. Btw for the "6) Make a copy of the folders you find that have remote-config in the folder names" I not really understand. Is that u want me copy remote config to Package folder to make it become local package?
     
  6. SebT_Unity

    SebT_Unity

    Unity Technologies

    Joined:
    Jun 21, 2021
    Posts:
    151
    Hi Optimise,

    Forgive me for the delayed response here.
    Confirming while using the remote config packages do you also have the authentication packages installed?
    "com.unity.remote-config": "3.0.0-pre.8",
    "com.unity.services.authentication": "1.0.0-pre.37"

    I have tested a local WINDOWS build and do not get the error described.
    can you share your Unity version?

    May be unrelated but are you using an Adblocker?
    https://forum.unity.com/threads/use...emote-config-when-using-an-adblocker.1219626/

    Thank you.
    Seb
     
  7. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    1,528
    Ya. I also using latest "com.unity.remote-config-runtime": "3.0.0-pre.18".

    Unity 2020.3.25
     
  8. SebT_Unity

    SebT_Unity

    Unity Technologies

    Joined:
    Jun 21, 2021
    Posts:
    151
    Hi Optimise,
    While speaking to some of my colleagues we will attempt some more testing with some internet settings locally.
    One thing that comes to mind is do you have any Firewalls / Adblockers / Routers that may temporarily causing some issues with your internet and for the application? If you can try disabling any of those and let me know if that helps in anyway.

    Once done testing will update this post.
    Best,
    Seb
     
  9. SebT_Unity

    SebT_Unity

    Unity Technologies

    Joined:
    Jun 21, 2021
    Posts:
    151
    Hi Optimise,
    I was able to get an error when disabling my internet temporarily. I would check your Router/ Adblockers / firewalls to see if there may be a blockage on that end.
    Please let me know your findings.
    upload_2022-1-6_11-56-36.png


    Best of luck
    Seb
     
    JeffDUnity3D likes this.
  10. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    1,528
    @Unity_SebT From what I observe, I believe remote config is not cater for not really stable network environment that will keep fluctuating or maybe remote config is not stable for certain countries like SEA countries I dunno. I give other people to test the real game and they also have the same curl error so I think it's not Router/ Adblockers / firewalls issue. Maybe u can try to test Malaysia network.

    Btw seems like new Remote config 3.0.0pre.9 release is not working properly. ConfigManager.FetchCompleted event no longer fire anymore.
     
  11. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    @optimise When did this start happening? Does it occur in your testing with a newer Android device? Does it work in the Editor?
     
  12. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    1,528
    @JeffDUnity3D I believe it can reproduce with any Android device regardless of version. Actually even at Editor u also can reproduce similar error.
     
  13. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    I am not able to reproduce here as you describe, but I do believe you. And you've turned of any firewall and ad blockers including in your router? Can you try using a different network, like a phone hot spot?
     
  14. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    1,528
    Alright.

    Android phone tested with wifi.
    upload_2022-1-19_17-57-22.png

    Tested by another person with phone hot spot and with different phone.
    upload_2022-1-19_17-59-2.png

    I also get one interesting error but I forget whether it's at Android build or editor but I believe it's at Android build.
    Failed to fetch remote configurations: HTTP/1.1 500 Internal Server Error Exceeded configured max-open-requests value of [32]. This means that the request queue of this pool (HostConnectionPoolSetup(rules-mgmt,80,ConnectionPoolSetup(ConnectionPoolSettings(4,0,5,32,1,30 seconds,ClientConnectionSettings(Some(User-Agent: akka-http/10.1.5),10 seconds,10 seconds,512,None,WebSocketSettings(<function0>,ping,Duration.Inf,akka.http.impl.settings.WebSocketSettingsImpl$$$Lambda$336/0x00000008403d0040@13be0834),List(),ParserSettings(2048,16,64,64,8192,64,8388608,8388608,256,1048576,Strict,RFC6265,true,Set(),Full,Error,Map(If-Range -> 0, If-Modified-Since -> 0, If-Unmodified-Since -> 0, default -> 12, Content-MD5 -> 0, Date -> 0, If-Match -> 0, If-None-Match -> 0, User-Agent -> 32),false,true,akka.util.ConstantFun$$$Lambda$63/0x000000084017f840@78c9e95a,akka.util.ConstantFun$$$Lambda$63/0x000000084017f840@78c9e95a,akka.util.ConstantFun$$$Lambda$64/0x0000000840180040@176d9eba),None,TCPTransport),New,1 second),akka.http.scaladsl.HttpConnectionContext$@6516eb0b,akka.event.MarkerLoggingAdapter@167d589f))) has completely filled up because the pool currently does not process requests fast enough to handle the incoming request load. Please retry the request later. See http://doc.akka.io/docs/akka-http/current/scala/http/client-side/pool-overflow.html for more information. UnityEngine.Debug:LogWarning (object) Unity.RemoteConfig.Editor.RemoteConfigWebApiClient/<_FetchEnvironments>d__31:MoveNext () (at Library/PackageCache/com.unity.remote-config@3.0.0-pre.8/Editor/RemoteConfigWebApiClient.cs:166) Unity.RemoteConfig.Editor.RemoteConfigWebApiClient:UpdateCoroutine () (at Library/PackageCache/com.unity.remote-config@3.0.0-pre.8/Editor/RemoteConfigWebApiClient.cs:416) Unity.RemoteConfig.Editor.RemoteConfigWebApiClient:Update () (at Library/PackageCache/com.unity.remote-config@3.0.0-pre.8/Editor/RemoteConfigWebApiClient.cs:400) UnityEditor.EditorApplication:Internal_CallUpdateFunctions ()
     
    Last edited: Jan 19, 2022
  15. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    As mentioned, I believe you but I'm not able to reproduce. Does it still operate correctly for you and these are just warnings?
     
  16. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    1,528
    Not really I guess. Although it seems working fine for most of the time but sometimes it will not properly though. When it doesn't work properly it stuck at forever or takes very long time to get the result.
     
  17. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    Please don't guess! Does it work in your testing? What result are you referring to?
     
  18. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    1,528
    Maybe let me do more testing and observe the error message when it doesn't work properly. Actually I integrated remote config long time ago and testing the game almost every week.
     
  19. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    In the words of Yoda, "There is no maybe, there is test or no test" :)
     
    optimise likes this.
  20. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    1,528
    @JeffDUnity3D I captured some logcat for u went it doesn't work properly. For this it suddenly become fetching config from production environment instead of develop environment.

    2022/01/20 18:02:03.568 3352 3457 Error Unity Curl error 28: Could not resolve host: api.prd.identity.corp.unity3d.com
    2022/01/20 18:02:03.568 3352 3457 Error Unity Curl error 6: Could not resolve host: api.prd.identity.corp.unity3d.com
    2022/01/20 18:02:03.568 3352 3457 Error Unity Curl error 6: Could not resolve host: be0d4e9b-d913-43a2-ae5d-805d588cff40.client-api.unity3dusercontent.com
    2022/01/20 18:02:03.568 3352 3457 Error Unity Curl error 6: Could not resolve host: be0d4e9b-d913-43a2-ae5d-805d588cff40.client-api.unity3dusercontent.com
    2022/01/20 18:02:03.586 3352 3409 Warn Unity [Authentication]: Network error detected, retrying...
    2022/01/20 18:02:03.586 3352 3409 Warn Unity UnityEngine.StackTraceUtility:ExtractStackTrace () (at /Users/bokken/buildslave/unity/build/Runtime/Export/Scripting/StackTrace.cs:37)
    2022/01/20 18:02:03.586 3352 3409 Warn Unity UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
    2022/01/20 18:02:03.586 3352 3409 Warn Unity UnityEngine.Logger:LogWarning (string,object)
    2022/01/20 18:02:03.586 3352 3409 Warn Unity Unity.Services.Authentication.Utilities.Logger:LogWarning (object) (at C:/ProjectClone/Library/PackageCache/com.unity.services.authentication@1.0.0-pre.37/Runtime/Utilities/Logger.cs:16)
    2022/01/20 18:02:03.586 3352 3409 Warn Unity Unity.Services.Authentication.Utilities.WebRequest:RequestCompleted (System.Threading.Tasks.TaskCompletionSource`1<string>,long,bool,bool,string,string,System.Collections.Generic.IDictionary`2<string, string>) (at C:/ProjectClone/Library/PackageCache/com.unity.services.authentication@1.0.0-pre.37/Runtime/Utilities/WebRequest.cs:197)
    2022/01/20 18:02:03.586 3352 3409 Warn Unity Unity.Services.Authentication.Utilities.WebRequest/<>c__DisplayClass19_1:<SendAttemptAsync>b__0 (UnityEngine.AsyncOperation) (at C:/ProjectClone/Library/PackageCache/com.u
    2022/01/20 18:02:03.587 3352 3409 Warn Unity [Authentication]: Network error detected, retrying...
    2022/01/20 18:02:03.587 3352 3409 Warn Unity UnityEngine.StackTraceUtility:ExtractStackTrace () (at /Users/bokken/buildslave/unity/build/Runtime/Export/Scripting/StackTrace.cs:37)
    2022/01/20 18:02:03.587 3352 3409 Warn Unity UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
    2022/01/20 18:02:03.587 3352 3409 Warn Unity UnityEngine.Logger:LogWarning (string,object)
    2022/01/20 18:02:03.587 3352 3409 Warn Unity Unity.Services.Authentication.Utilities.Logger:LogWarning (object) (at C:/ProjectClone/Library/PackageCache/com.unity.services.authentication@1.0.0-pre.37/Runtime/Utilities/Logger.cs:16)
    2022/01/20 18:02:03.587 3352 3409 Warn Unity Unity.Services.Authentication.Utilities.WebRequest:RequestCompleted (System.Threading.Tasks.TaskCompletionSource`1<string>,long,bool,bool,string,string,System.Collections.Generic.IDictionary`2<string, string>) (at C:/ProjectClone/Library/PackageCache/com.unity.services.authentication@1.0.0-pre.37/Runtime/Utilities/WebRequest.cs:197)
    2022/01/20 18:02:03.587 3352 3409 Warn Unity Unity.Services.Authentication.Utilities.WebRequest/<>c__DisplayClass19_1:<SendAttemptAsync>b__0 (UnityEngine.AsyncOperation) (at C:/ProjectClone/Library/PackageCache/com.u

    2022/01/20 18:02:28.664 3352 3464 Error Unity Curl error 28: Resolving timed out after 10000 milliseconds
    2022/01/20 18:02:28.664 3352 3464 Error Unity Curl error 28: Resolving timed out after 10000 milliseconds
    2022/01/20 18:02:28.664 3352 3464 Error Unity Curl error 6: Could not resolve host: cdp.cloud.unity3d.com
    2022/01/20 18:02:28.686 3352 3409 Warn Unity [Authentication]: Request completed with error: Request timeout
    2022/01/20 18:02:28.686 3352 3409 Warn Unity UnityEngine.StackTraceUtility:ExtractStackTrace () (at /Users/bokken/buildslave/unity/build/Runtime/Export/Scripting/StackTrace.cs:37)
    2022/01/20 18:02:28.686 3352 3409 Warn Unity UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
    2022/01/20 18:02:28.686 3352 3409 Warn Unity UnityEngine.Logger:LogWarning (string,object)
    2022/01/20 18:02:28.686 3352 3409 Warn Unity Unity.Services.Authentication.Utilities.Logger:LogWarning (object) (at C:/ProjectClone/Library/PackageCache/com.unity.services.authentication@1.0.0-pre.37/Runtime/Utilities/Logger.cs:16)
    2022/01/20 18:02:28.686 3352 3409 Warn Unity Unity.Services.Authentication.Utilities.WebRequest:RequestCompleted (System.Threading.Tasks.TaskCompletionSource`1<string>,long,bool,bool,string,string,System.Collections.Generic.IDictionary`2<string, string>) (at C:/ProjectClone/Library/PackageCache/com.unity.services.authentication@1.0.0-pre.37/Runtime/Utilities/WebRequest.cs:209)
    2022/01/20 18:02:28.686 3352 3409 Warn Unity Unity.Services.Authentication.Utilities.WebRequest/<>c__DisplayClass19_1:<SendAttemptAsync>b__0 (UnityEngine.AsyncOperation) (at C:/ProjectClone/Library/PackageC
    2022/01/20 18:02:28.690 3352 3409 Warn Unity [Authentication]: Well-known keys request failed (attempt: 1): 0, Request timeout
    2022/01/20 18:02:28.690 3352 3409 Warn Unity UnityEngine.StackTraceUtility:ExtractStackTrace () (at /Users/bokken/buildslave/unity/build/Runtime/Export/Scripting/StackTrace.cs:37)
    2022/01/20 18:02:28.690 3352 3409 Warn Unity UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
    2022/01/20 18:02:28.690 3352 3409 Warn Unity UnityEngine.Logger:LogWarning (string,object)
    2022/01/20 18:02:28.690 3352 3409 Warn Unity Unity.Services.Authentication.Utilities.Logger:LogWarning (object) (at C:/ProjectClone/Library/PackageCache/com.unity.services.authentication@1.0.0-pre.37/Runtime/Utilities/Logger.cs:16)
    2022/01/20 18:02:28.690 3352 3409 Warn Unity Unity.Services.Authentication.AuthenticationServiceInternal/<GetWellKnownKeysAsync>d__93:MoveNext () (at C:/ProjectClone/Library/PackageCache/com.unity.services.authentication@1.0.0-pre.37/Runtime/AuthenticationServiceInternal.cs:382)
    2022/01/20 18:02:28.690 3352 3409 Warn Unity System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner:InvokeMoveNext (object)
    2022/01/20 18:02:28.690 3352 3409 Warn Unity System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
    2022/01/20 18:02:28.690 3352 3409 Warn Unity System.Threading.Execu
    2022/01/20 18:02:28.691 3352 3409 Warn Unity [Authentication]: Request completed with error: Request timeout
    2022/01/20 18:02:28.691 3352 3409 Warn Unity UnityEngine.StackTraceUtility:ExtractStackTrace () (at /Users/bokken/buildslave/unity/build/Runtime/Export/Scripting/StackTrace.cs:37)
    2022/01/20 18:02:28.691 3352 3409 Warn Unity UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
    2022/01/20 18:02:28.691 3352 3409 Warn Unity UnityEngine.Logger:LogWarning (string,object)
    2022/01/20 18:02:28.691 3352 3409 Warn Unity Unity.Services.Authentication.Utilities.Logger:LogWarning (object) (at C:/ProjectClone/Library/PackageCache/com.unity.services.authentication@1.0.0-pre.37/Runtime/Utilities/Logger.cs:16)
    2022/01/20 18:02:28.691 3352 3409 Warn Unity Unity.Services.Authentication.Utilities.WebRequest:RequestCompleted (System.Threading.Tasks.TaskCompletionSource`1<string>,long,bool,bool,string,string,System.Collections.Generic.IDictionary`2<string, string>) (at C:/ProjectClone/Library/PackageCache/com.unity.services.authentication@1.0.0-pre.37/Runtime/Utilities/WebRequest.cs:209)
    2022/01/20 18:02:28.691 3352 3409 Warn Unity Unity.Services.Authentication.Utilities.WebRequest/<>c__DisplayClass19_1:<SendAttemptAsync>b__0 (UnityEngine.AsyncOperation) (at C:/ProjectClone/Library/PackageC
    2022/01/20 18:02:29.299 3352 3409 Error Unity [Authentication]: Request failed: 0, Request timeout
    2022/01/20 18:02:29.299 3352 3409 Error Unity UnityEngine.StackTraceUtility:ExtractStackTrace () (at /Users/bokken/buildslave/unity/build/Runtime/Export/Scripting/StackTrace.cs:37)
    2022/01/20 18:02:29.299 3352 3409 Error Unity UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
    2022/01/20 18:02:29.299 3352 3409 Error Unity UnityEngine.Logger:LogError (string,object)
    2022/01/20 18:02:29.299 3352 3409 Error Unity Unity.Services.Authentication.Utilities.Logger:LogError (object) (at C:/ProjectClone/Library/PackageCache/com.unity.services.authentication@1.0.0-pre.37/Runtime/Utilities/Logger.cs:17)
    2022/01/20 18:02:29.299 3352 3409 Error Unity Unity.Services.Authentication.AuthenticationServiceInternal:BuildServerException (Unity.Services.Authentication.Utilities.WebRequestException) (at C:/ProjectClone/Library/PackageCache/com.unity.services.authentication@1.0.0-pre.37/Runtime/AuthenticationServiceInternal.cs:684)
    2022/01/20 18:02:29.299 3352 3409 Error Unity Unity.Services.Authentication.AuthenticationServiceInternal/<StartSigningInAsync>d__96:MoveNext () (at C:/ProjectClone/Library/PackageCache/com.unity.services.authentication@1.0.0-pre.37/Runtime/AuthenticationServiceInternal.cs:433)
    2022/01/20 18:02:29.299 3352 3409 Error Unity S


    2022/01/20 18:02:29.354 3352 3409 Warn Unity Auth Service not initialized.
    2022/01/20 18:02:29.354 3352 3409 Warn Unity Request might result in empty or incomplete response
    2022/01/20 18:02:29.354 3352 3409 Warn Unity Please refer to https://docs.unity3d.com/Packages/com.unity.remote-config@3.0/manual/CodeIntegration.html
    2022/01/20 18:02:29.354 3352 3409 Warn Unity UnityEngine.StackTraceUtility:ExtractStackTrace () (at /Users/bokken/buildslave/unity/build/Runtime/Export/Scripting/StackTrace.cs:37)
    2022/01/20 18:02:29.354 3352 3409 Warn Unity UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
    2022/01/20 18:02:29.354 3352 3409 Warn Unity UnityEngine.Logger:Log (UnityEngine.LogType,object)
    2022/01/20 18:02:29.354 3352 3409 Warn Unity UnityEngine.Debug:LogWarning (object)
    2022/01/20 18:02:29.354 3352 3409 Warn Unity Unity.RemoteConfig.ConfigManagerImpl:DoRequest (string,string) (at C:/ProjectClone/Library/PackageCache/com.unity.remote-config-runtime@3.0.0-pre.18/Runtime/ConfigManagerImpl.cs:520)
    2022/01/20 18:02:29.354 3352 3409 Warn Unity Unity.RemoteConfig.ConfigManagerImpl:postConfigWithConfigType (string,object,object,object) (at C:/ProjectClone/Library/PackageCache/com.unity.remote-config-runtime@3.0.0-pre.18/Runtime/ConfigManagerImpl.cs:470)
    2022/01/20 18:02:29.354 3352 3409 Warn Unity Unity.RemoteConfig.ConfigManagerImpl:FetchConfigs<InitRemoteConfigSystem/userAttributes, InitRemoteConfigSystem/appAttr
     
  21. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    @optimise Got it! Can you provide steps to reproduce, when does this occur. What is different during this test? Please share your code where you set your environmentID for Remote Config.
     
  22. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    1,528
    Honestly I just launch my game app and let the remote config load itself all the time. I dun really have any special steps to reproduce. Below are the code snippet. Currently I'm using Remote Config 3.0.0-pre.8 since 3.0.0-pre.9 is buggy and not working.

    bool isSignInAnonymouslyAsync = false;

    try
    {
    var environmentID ="develop";
    var options = new InitializationOptions().SetEnvironmentName(environmentID);

    // Initialize handlers for unity game services
    await UnityServices.InitializeAsync(options);

    // Remote config requires authentication for managing environment information
    if (!AuthenticationService.Instance.IsSignedIn)
    {
    await AuthenticationService.Instance.SignInAnonymouslyAsync();
    isSignInAnonymouslyAsync = true;
    }
    }
    catch (Exception exception)
    {
    // An error occurred during initialization.
    Debug.Log($"{exception}");
    }

    ConfigManager.FetchCompleted += ConfigManager_FetchCompleted;
    ConfigManager.FetchConfigs(new userAttributes(), new appAttributes());

    if (isSignInAnonymously)
    {
    AuthenticationService.Instance.SignOut();
    isSignInAnonymously = false;
    }

    void ConfigManager_FetchCompleted(ConfigResponse configResponse)
    {
    switch (configResponse.requestOrigin)
    {
    case ConfigOrigin.Default:
    //Debug.Log("Default values will be returned");
    break;

    case ConfigOrigin.Cached:
    //Debug.Log("Cached values loaded");
    break;

    case ConfigOrigin.Remote:
    //Debug.Log("Remote Values changed");
    Debug.Log("ConfigManager.appConfig fetched: " + ConfigManager.appConfig.config);
    break;
    }
     
  23. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    Your code looks correct. So randomly it sometimes works and others not, with no code or network changes? How often? You mention "all the time", can you be more specific? One minute it works, and the next not? And your environmentID is hard-coded? I'm not doubting your claims, we are just trying to find exact steps to reproduce here.
     
  24. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    1,528
    Ya. All the time I mean with no code or network changes. I just test my game as usual. It works most of time but when it doesn't work then it will become fetch wrong data from another environment or just stuck there forever and never fetch data. Actually my environmentID is not hardcoded but I can confirm it's deterministic.
     
    JeffDUnity3D likes this.
  25. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    1,528
    @JeffDUnity3D Btw one feedback for ConfigManager.FetchCompleted action. Can u modify internal code logic to make ConfigManager.FetchCompleted action call on main thread again? The previous remote config is working properly until recent version. The current remote config internal implementation breaks my project and I use super hacky to check it every single frame until ConfigManager.FetchCompleted has response.
     
  26. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    One issue per thread please, best to open a separate thread
     
    optimise likes this.
  27. JeffDUnity3D

    JeffDUnity3D

    Unity Technologies

    Joined:
    May 2, 2017
    Posts:
    14,446
    Got it. Agreed it sounds like an issue at our end, from your description. A Charles Proxy network capture would really help, but it might be hard to grab one due to the random nature of the issue https://support.unity.com/hc/en-us/articles/115002917683-Using-Charles-Proxy-with-Unity