捆绑安装会引发HTTPError

时间:2019-06-20 20:44:36

标签: ruby-on-rails bundler

我注意到我的一颗宝石似乎已经过时,因此当我尝试在本地重新安装该宝石时,会看到以下内容:

$ gem install stripe
Successfully installed stripe-4.19.0
Parsing documentation for stripe-4.19.0
Done installing documentation for stripe after 0 seconds
WARNING:  Unable to pull data from 'http://gems.github.com': bad response Not Found 404 (http://gems.github.io/specs.4.8.gz)
1 gem installed

但是我想知道这个警告是否与我的gem无法正常运行有关(某些可用的功能抛出NoMethodError

当我尝试运行bundle install时,我看到:

$ bundle install
Your Gemfile lists the gem geckodriver-helper (>= 0) more than once.
You should probably keep only one of them.
While it's not a problem now, it could cause errors if you change the version of one of them later.
Warning: the running version of Bundler (1.16.1) is older than the version that created the lockfile (1.17.3). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
Fetching gem metadata from https://rubygems.org/.....
Retrying dependency api due to error (2/4): Bundler::HTTPError Net::HTTPBadGateway:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
  <head>
    <title>502 Bad Gateway</title>
  </head>
  <body>
    <h1>Error 502 Bad Gateway</h1>
    <p>Bad Gateway</p>
    <h3>Guru Mediation:</h3>
    <p>Details: cache-bos8222-BOS 1561062786 1540944660</p>
    <hr>
    <p>Varnish cache server</p>
  </body>
</html>
......
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies....
Using rake 12.3.1
...

我已连接到互联网,所以我不确定到底发生了什么事...

0 个答案:

没有答案