Hello, I have some issues with the package manager. If I try to refresh package list it takes forever and sometimes I got the error “Cannot connect to ‘packages.unity.com’ (error code: ECONNRESET) Verify your environment firewall policies allow connection to this host name. If your system is behind a proxy, verify your proxy environment variables (HTTP_PROXY and HTTPS_PROXY) are properly set” and sometimes it works fine.
I tried a few things to fix it or give me a clue :
-
Disable firewall => still cause the issue
-
Check proxy settings (I use none I don’t even know what that is)
-
I run RunUnityPackageManagerDiagnostics.bat one time it told me that the auto proxy config settings was disabled so I added it in services-config.json => it worked for the proxy step and said I don’t have any proxy
-
I run RunUnityPackageManagerDiagnostics.bat another time and I got “Ping latest editor URL (UNKNOWN)” & “Partial download of latest editor (UNKNOWN)”
-
I tried setting the environment variables NO_PROXY=localhost,127.0.0.1 UNITYNO_PROXY=localhost,127.0.0.1 as I saw in this forum => caused more issue not got the error : “[Package Manager Window] Error while getting auth code: System.InvalidOperationException: Failed to call Unity ID to get auth code.UnityEditor.AsyncHTTPClient:Done (UnityEditor.AsyncHTTPClient/State,int)” in the Editor so I removed them
-
I tried using my phone 4G connection thinking it was link to my wifi => still cause the issue
-
I tried using a different computer => still cause the issue
- How can we reproduce it using the example you attached
I am not sure if you would be abble to reproduce it because my colleagues doesn’t have the issue it is probably link to my computer setup but no clue how.
But it happened when :
- I try to refresh packages list (in project, updates, unity registry, my assets …)
- I try to update a package when the list is shown or via a custom script our team made to update our own package
System & Software info :
- Unity Version : Unity 6000.0.13f1
- Unity Hub Version : 3.10.0
- Windows version : Windows 10 Professionnel 22H2
Note : I tried uploading a bug report through Unity Editor and I got the popup in screenshot. Again I repeat I don’t use a proxy and I don’t think that’s the issue because it does the same thing with my 4G connection.
Please Help
What happens if you run this on the command line?
ping packages.unity.com
If you get bytes back then technically it is reachable. Otherwise it’s a problem with the network configuration.
In that case you should roll back all changes you made regarding the proxy configuration. If anything this is just going to complicate things.
Specifically the environment settings may be the reason why the bug reporter responds with “proxy connection refused”. You now configured Unity to use a proxy but there is none on “localhost” (aka your machine). Make sure to reboot after removing these env vars and double check that they are gone (Windows: open command prompt and enter set
).
If you can ping the URL as mentioned above, run the diagnostics batch again. If that reports issues, post those here in verbatim.
A proxy service/server is somewhat like an elaborate firewall with extra features (eg caching). Typically this isn’t hosted on your machine but rather your machine connects to the proxy as opposed to the internet directly. In a corporate environment, all outgoing traffic goes through the proxy server.
Hi, thanks for your answer.
I tried the ping as you said and I got :
Envoi d’une requête ‘ping’ sur packages.unity.com [34.36.199.114] avec 32 octets de données :
Réponse de 34.36.199.114 : octets=32 temps=14 ms TTL=116
Réponse de 34.36.199.114 : octets=32 temps=15 ms TTL=116
Réponse de 34.36.199.114 : octets=32 temps=13 ms TTL=116
Réponse de 34.36.199.114 : octets=32 temps=23 ms TTL=116
Statistiques Ping pour 34.36.199.114:
Paquets : envoyés = 4, reçus = 4, perdus = 0 (perte 0%),
Durée approximative des boucles en millisecondes :
Minimum = 13ms, Maximum = 23ms, Moyenne = 16ms
Sorry for the french text, my computer is in french so. But seems like I get bytes.
I reverted the changes related to proxy :
- Removed the environement variables
- Removed the editor configs file I created in ProgramData
I ran the diagnostics again and here the generated logs files
logs.zip (5.0 KB)
Can you ping these addresses?
ping api.hub-proxy.unity3d.com
ping analytics.cloud.unity3d.com
ping aka.ms
According to the log ping to these and others failed which might indicate these may be blocked somehow.
I did, and I received all of them if I get that well.
Envoi d’une requête ‘ping’ sur api.hub-proxy.unity3d.com [35.227.233.206] avec 32 octets de données :
Réponse de 35.227.233.206 : octets=32 temps=11 ms TTL=116
Réponse de 35.227.233.206 : octets=32 temps=11 ms TTL=116
Réponse de 35.227.233.206 : octets=32 temps=12 ms TTL=116
Réponse de 35.227.233.206 : octets=32 temps=15 ms TTL=116
Statistiques Ping pour 35.227.233.206:
Paquets : envoyés = 4, reçus = 4, perdus = 0 (perte 0%),
Durée approximative des boucles en millisecondes :
Minimum = 11ms, Maximum = 15ms, Moyenne = 12ms
Envoi d’une requête ‘ping’ sur analytics.cloud.unity3d.com [34.111.87.67] avec 32 octets de données :
Réponse de 34.111.87.67 : octets=32 temps=16 ms TTL=117
Réponse de 34.111.87.67 : octets=32 temps=12 ms TTL=117
Réponse de 34.111.87.67 : octets=32 temps=12 ms TTL=117
Réponse de 34.111.87.67 : octets=32 temps=14 ms TTL=117
Statistiques Ping pour 34.111.87.67:
Paquets : envoyés = 4, reçus = 4, perdus = 0 (perte 0%),
Durée approximative des boucles en millisecondes :
Minimum = 12ms, Maximum = 16ms, Moyenne = 13ms
Envoi d’une requête ‘ping’ sur aka.ms [23.192.227.128] avec 32 octets de données :
Réponse de 23.192.227.128 : octets=32 temps=12 ms TTL=54
Réponse de 23.192.227.128 : octets=32 temps=11 ms TTL=54
Réponse de 23.192.227.128 : octets=32 temps=15 ms TTL=54
Réponse de 23.192.227.128 : octets=32 temps=11 ms TTL=54
Statistiques Ping pour 23.192.227.128:
Paquets : envoyés = 4, reçus = 4, perdus = 0 (perte 0%),
Durée approximative des boucles en millisecondes :
Minimum = 11ms, Maximum = 15ms, Moyenne = 12ms
are you behind a proxy server eg work/school?
I don’t think so I work from home and I didn’t setup that or may be someone in the house did by accident I don’t know how it works. But using my mobile 4G as wifi did the same result and I don’t think the proxy apply to it.
Maybe try reinstalling the editors and Hub. After uninstalling, clean any remaining “Unity” folders under AppData specifically but you may want to keep backups because you’ll also lose some global Unity settings doing that.
Do you have something like a pihole?
I don’t know what that is so I guess no ^^’
Gonna try uninstall later then
a pihole is a raspberry pi which runs pihole, which is an ad blocker so it returns bad dns queries for ads and some cookie things… i had issues with unity until i unblocked something for a while to click a button … it was a big thing when youtube videos werent playing
I reinstalled the editors & Hub, the diagnostic give the same result but for now I don’t have the error “Cannot connect to packages.unity.com (error code: ECONNRESET)"