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.
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.
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)
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
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.
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)"
Built from '6000.3/staging' branch; Version is '6000.3.2f1 (a9779f353c9b) revision 11106207'; Using compiler version '194234433'; Build Type 'Release'
OS: 'Windows 10 (10.0.19045) 64bit Professional' Language: 'en' Physical Memory: 65448 MB
...
An error occurred while resolving packages:
One or more packages could not be added to the local file system:
com.unity.addressables: Cannot connect to 'download.packages.unity.com' (error code: ETIMEDOUT). Check your internet connection and verify that 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.
com.unity.bindings.openimageio: Cannot connect to 'download.packages.unity.com' (error code: ETIMEDOUT). Check your internet connection and verify that 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.
com.unity.recorder: Cannot connect to 'download.packages.unity.com' (error code: ETIMEDOUT). Check your internet connection and verify that 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.
com.unity.scriptablebuildpipeline: Cannot connect to 'download.packages.unity.com' (error code: ETIMEDOUT). Check your internet connection and verify that 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.
# Unity Package Manager Error
Check if you can open download.packages.unity.com in your browser. The page will be empty once it’s loaded. If the browser continues to show a loading animation and eventually times out, it means there’s a connection issue on your end.
If your Internet is working, and you’re not in a restricted country (eg mainland China), it’s a problem with your system. If you use a firewall or VPN, disable that. If you use a proxy, configure or disable it. If it used to work before, consider what has changed since then.
I see empty page with 200 OK status and content-length: 0, x-powered-by: Express headers in browser for the download.packages.unity.com, however Unity 6000.3.2f1 and 6000.3.4f1 couldn’t connect to it.
I’ve solved problem by setting HTTP(S)_PROXY values for the Editor to my private proxy (it was using direct connection before, just as the browser). I can blame only Roskomnadzor (aka the-govt-MITM-service in Russia), because nothing else has changed on my side. Must be some pattern in the specific requests that they don’t like and ban.