Recently I keep getting the following error but remote config still working properly but I think it's still better to solve the errors. Spoiler 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
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
@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.
Hi Optimise, When you have some time can you try the following. Close the Unity editor Go to your project folder. Locate the Library folder Locate Package Cache folder See if you can find "com.unity.remote-config@X.X.X" Make a copy of the folders you find that have remote-config in the folder names Delete the folders Restart Unity editor Let me know if it helps with the errors. If not I will continue digging. Best, Seb
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?
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
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
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. Best of luck Seb
@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.
@optimise When did this start happening? Does it occur in your testing with a newer Android device? Does it work in the Editor?
@JeffDUnity3D I believe it can reproduce with any Android device regardless of version. Actually even at Editor u also can reproduce similar error.
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?
Alright. Android phone tested with wifi. Spoiler Tested by another person with phone hot spot and with different phone. Spoiler 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. Spoiler 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 ()
As mentioned, I believe you but I'm not able to reproduce. Does it still operate correctly for you and these are just warnings?
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.
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.
@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. Spoiler 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.ConfigManagerImploRequest (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.ConfigManagerImplostConfigWithConfigType (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
@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.
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. Spoiler 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; } Spoiler 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; }
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.
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 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.
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