Chocolatey无法下载Unity(通过travis)

时间:2019-03-31 13:18:47

标签: unity3d travis-ci chocolatey

Travis now supports building on Windows起(至少在一定程度上),我一直在尝试在Windows计算机上构建一个Unity项目。 在尝试对Travis配置进行各种更改时,我有两个版本可以安装Unity(但是什么也没做)。一旦我准备好尝试统一构建配置,Chocolatey就无法下载Unity

我个人(通过Travis从站)是否达到了每天的下载限制(并且我总是得到相同的从站IP)?还是这是几个人经常通过Travis下载unity的结果?

由于我能够通过日志中提供的链接手动下载文件,因此我排除了统一服务器问题。

以下是失败的Travis日志:

$choco install unity
Chocolatey v0.10.11
Installing the following packages:
unity
By installing you accept licenses for the packages.
Progress: Downloading unity 2018.3.11... 100%
unity v2018.3.11 [Approved]
unity package files install completed. Performing other installation steps.
Downloading unity 64 bit
  from 'https://download.unity3d.com/download_unity/5063218e4ab8/Windows64EditorInstaller/UnitySetup64.exe'
ERROR: The remote file either doesn't exist, is unauthorized, or is forbidden for url 'https://download.unity3d.com/download_unity/5063218e4ab8/Windows64EditorInstaller/UnitySetup64.exe'. Exception calling "GetResponse" with "0" argument(s): "The remote server returned an error: (403) Forbidden." 
This package is likely not broken for licensed users - see https://chocolatey.org/docs/features-private-cdn.
The install of unity was NOT successful.

接下来的一个(一个多小时之前)供参考。

choco install unity
Chocolatey v0.10.11
Installing the following packages:
unity
By installing you accept licenses for the packages.
Progress: Downloading unity 2018.3.11... 100%
unity v2018.3.11 [Approved]
unity package files install completed. Performing other installation steps.
Downloading unity 64 bit
  from 'https://download.unity3d.com/download_unity/5063218e4ab8/Windows64EditorInstaller/UnitySetup64.exe'
Progress: 100% - Completed download of C:\Users\travis\AppData\Local\Temp\chocolatey\unity\2018.3.11\UnitySetup64.exe (557 MB).
Download of UnitySetup64.exe (557 MB) completed.
Hashes match.
Installing unity...
unity has been installed.
  unity may be able to be automatically uninstalled.
 The install of unity was successful.
  Software installed as 'EXE', install location is likely default.

1 个答案:

答案 0 :(得分:1)

在Chocolatey.org上确实有一个新的速率限制功能(已启用on the 26th November 2018时),正在播放时返回的HTTP错误代码为429,而不是403。结果,我认为这不是导致您出现问题的原因。

有一本有关403 HTTP状态代码here的疑难解答文章。我建议遵循其中的建议,这可能是由于以下某些原因造成的:

  
      
  • 您具有需要配置的代理
  •   
  • 它在您的组织中被阻止
  •   
  • 我们弄坏了东西(这是最不可能的原因)
  •   
  • CloudFlare由于某种原因阻止了您的IP(99%的时间,这就是问题所在)
  •   
  • 巧克力社区团队可能由于使用过多而被阻止访问-有关详细信息,请参见过度使用
  •