Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve error handling when RubyGems.org is offline #246

Closed
artob opened this issue Nov 14, 2014 · 0 comments · Fixed by #725
Closed

Improve error handling when RubyGems.org is offline #246

artob opened this issue Nov 14, 2014 · 0 comments · Fixed by #725

Comments

@artob
Copy link

artob commented Nov 14, 2014

On a new install (sudo gem install travis) just now, while RubyGems.org had an outage the CLI was unusable, with rather substandard error behavior:

$ travis encrypt FOO=bar
757: unexpected token at '<!DOCTYPE html>
<html lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
    <link href="/stylesheets/reset.css" media="screen" rel="stylesheet" type="text/css" />
    <link href="/stylesheets/960.css" media="screen" rel="stylesheet" type="text/css" />
    <link href="/stylesheets/screen.css" media="screen" rel="stylesheet" type="text/css" />
    <!--[if IE 7]>
      <link href="/stylesheets/ie7.css" media="screen" rel="stylesheet" type="text/css" />
    <![endif]-->
    <title>under maintenance | RubyGems.org</title>
  </head>
  <body>
    <div class="container_12">
      <div class="prefix_1 grid_4 header">
        <h1><a href="/" title="Home">RubyGems.org</a></h1>
      </div>
      <div class="grid_6 suffix_1 nav">
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
      </div>
      <div class="prefix_1 grid_10 suffix_1 main">
        <div class="info">
          <div class="title">
            <h2>Under maintenance</h2>
            <h3>I'm having a good time... *not*!</h3>
          </div>
          <p>We'll be back to 100% soon. Some long migration or fixes are being put in place. Hold on!</p>
          <p>Please checkout <a href="http://twitter.com/rubygems_status">@rubygems_status</a> and <a href="http://status.rubygems.org/">status.rubygems.org</a> for more real-time status updates.</p>
          <p>While you wait...</p>
          <p style="text-align: center">
            <iframe width="420" height="315" src="http://www.youtube.com/embed/g4ouPGGLI6Q" frameborder="0" allowfullscreen></iframe>
          </p>
        </div>
      </div>
      <div class="prefix_1 grid_10 suffix_1 footer">
        <div class="links">
        </div>
      </div>
    </div>
  </body>
</html>'

Later, once RubyGems.org changed from "under maintenance" to "Server Error", we also observed this output:

$ travis encrypt FOO=bar
undefined method `split' for nil:NilClass
for a full error report, run travis report

The CLI started behaving normally once RubyGems.org came back. Unfortunately, nothing useful captured in travis report:

$ travis report
System
Ruby:                     Ruby 1.9.3-p0
Operating System:         Ubuntu 12.04
RubyGems:                 RubyGems 1.8.11

CLI
Version:                  1.7.4
Plugins:                  none
Auto-Completion:          no
Last Version Check:       2014-11-14 22:51:55 +0000

Session
API Endpoint:             https://api.travis-ci.org/
Logged In:                no
Verify SSL:               yes
Enterprise:               no

Endpoints
org:                      https://api.travis-ci.org/ (current)

cc: @lisp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant