Skip to content

Instantly share code, notes, and snippets.

@danishsatkut
Created July 7, 2017 15:56
Show Gist options
  • Save danishsatkut/879050e0acc19931cb434396817158ec to your computer and use it in GitHub Desktop.
Save danishsatkut/879050e0acc19931cb434396817158ec to your computer and use it in GitHub Desktop.
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>RestClient::NotFound at &#x2F;clusters&#x2F;902f859d-038c-4920-a714-4a057a13123c</title> <script type="text/javascript"> //<!-- function toggle(id) { var pre = document.getElementById("pre-" + id); var post = document.getElementById("post-" + id); var context = document.getElementById("context-" + id); if (pre.style.display == 'block') { pre.style.display = 'none'; post.style.display = 'none'; context.style.background = "none"; } else { pre.style.display = 'block'; post.style.display = 'block'; context.style.background = "#fffed9"; } } function toggleBacktrace(){ var bt = document.getElementById("backtrace"); var toggler = document.getElementById("expando"); if (bt.className == 'condensed') { bt.className = 'expanded'; toggler.innerHTML = "(condense)"; } else { bt.className = 'condensed'; toggler.innerHTML = "(expand)"; } } //--> </script> <style type="text/css" media="screen"> * {margin: 0; padding: 0; border: 0; outline: 0;} div.clear {clear: both;} body {background: #EEEEEE; margin: 0; padding: 0; font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Garuda';} code {font-family: 'Lucida Console', monospace; font-size: 12px;} li {height: 18px;} ul {list-style: none; margin: 0; padding: 0;} ol:hover {cursor: pointer;} ol li {white-space: pre;} #explanation {font-size: 12px; color: #666666; margin: 20px 0 0 100px;} /* WRAP */ #wrap {width: 1000px; background: #FFFFFF; margin: 0 auto; padding: 30px 50px 20px 50px; border-left: 1px solid #DDDDDD; border-right: 1px solid #DDDDDD;} /* HEADER */ #header {margin: 0 auto 25px auto;} #header img {float: left;} #header #summary {float: left; margin: 12px 0 0 20px; width:660px; font-family: 'Lucida Grande', 'Lucida Sans Unicode';} h1 {margin: 0; font-size: 36px; color: #981919;} h2 {margin: 0; font-size: 22px; color: #333333;} #header ul {margin: 0; font-size: 12px; color: #666666;} #header ul li strong{color: #444444;} #header ul li {display: inline; padding: 0 10px;} #header ul li.first {padding-left: 0;} #header ul li.last {border: 0; padding-right: 0;} /* BODY */ #backtrace, #get, #post, #cookies, #rack {width: 980px; margin: 0 auto 10px auto;} p#nav {float: right; font-size: 14px;} /* BACKTRACE */ a#expando {float: left; padding-left: 5px; color: #666666; font-size: 14px; text-decoration: none; cursor: pointer;} a#expando:hover {text-decoration: underline;} h3 {float: left; width: 100px; margin-bottom: 10px color: #981919; font-size: 14px; font-weight: bold;} #nav a {color: #666666; text-decoration: none; padding: 0 5px;} #backtrace li.frame-info {background: #f7f7f7; padding-left: 10px; font-size: 12px; color: #333333;} #backtrace ul {list-style-position: outside; border: 1px solid #E9E9E9; border-bottom: 0;} #backtrace ol {width: 920px; margin-left: 50px; font: 10px 'Lucida Console', monospace; color: #666666;} #backtrace ol li {border: 0; border-left: 1px solid #E9E9E9; padding: 2px 0;} #backtrace ol code {font-size: 10px; color: #555555; padding-left: 5px;} #backtrace-ul li {border-bottom: 1px solid #E9E9E9; height: auto; padding: 3px 0;} #backtrace-ul .code {padding: 6px 0 4px 0;} #backtrace.condensed .system, #backtrace.condensed .framework {display:none;} /* REQUEST DATA */ p.no-data {padding-top: 2px; font-size: 12px; color: #666666;} table.req {width: 980px; text-align: left; font-size: 12px; color: #666666; padding: 0; border-spacing: 0; border: 1px solid #EEEEEE; border-bottom: 0; border-left: 0; clear:both} table.req tr th {padding: 2px 10px; font-weight: bold; background: #F7F7F7; border-bottom: 1px solid #EEEEEE; border-left: 1px solid #EEEEEE;} table.req tr td {padding: 2px 20px 2px 10px; border-bottom: 1px solid #EEEEEE; border-left: 1px solid #EEEEEE;} /* HIDE PRE/POST CODE AT START */ .pre-context, .post-context {display: none;} table td.code {width:750px} table td.code div {width:750px;overflow:hidden} </style> </head> <body> <div id="wrap"> <div id="header"> <img src="/clusters/__sinatra__/500.png" alt="application error" height="161" width="313" /> <div id="summary"> <h1><strong>RestClient::NotFound</strong> at <strong>&#x2F;clusters&#x2F;902f859d-038c-4920-a714-4a057a13123c </strong></h1> <h2>404 Not Found</h2> <ul> <li class="first"><strong>file:</strong> <code> abstract_response.rb</code></li> <li><strong>location:</strong> <code>exception_with_response </code></li> <li class="last"><strong>line: </strong> 223</li> </ul> </div> <div class="clear"></div> </div> <div id="backtrace" class='condensed'> <h3>BACKTRACE</h3> <p><a href="#" id="expando" onclick="toggleBacktrace(); return false">(expand)</a></p> <p id="nav"><strong>JUMP TO:</strong> <a href="#get-info">GET</a> <a href="#post-info">POST</a> <a href="#cookie-info">COOKIES</a> <a href="#env-info">ENV</a> </p> <div class="clear"></div> <ul id="backtrace-ul"> <li class="frame-info system"> <code>&#x2F;opt&#x2F;ds&#x2F;dmc&#x2F;dmc-repo&#x2F;shared&#x2F;bundle&#x2F;gems&#x2F;rest-client-2.0.0&#x2F;lib&#x2F;restclient&#x2F;abstract_response.rb</code> in <code><strong>exception_with_response</strong></code> </li> <li class="code system"> <ol start="216" class="pre-context" id="pre-1" onclick="toggle(1);"> <li class="pre-context-line"><code> def exception_with_response </code></li> <li class="pre-context-line"><code> begin </code></li> <li class="pre-context-line"><code> klass = Exceptions::EXCEPTIONS_MAP.fetch(code) </code></li> <li class="pre-context-line"><code> rescue KeyError </code></li> <li class="pre-context-line"><code> raise RequestFailed.new(self, code) </code></li> <li class="pre-context-line"><code> end </code></li> <li class="pre-context-line"><code> </code></li> </ol> <ol start="223" class="context" id="1" onclick="toggle(1);"> <li class="context-line" id="context-1"><code> raise klass.new(self, code)</code></li> </ol> <ol start="224" class="post-context" id="post-1" onclick="toggle(1);"> <li class="post-context-line"><code> end </code></li> <li class="post-context-line"><code> end </code></li> <li class="post-context-line"><code>end </code></li> </ol> <div class="clear"></div> </li> <li class="frame-info system"> <code>&#x2F;opt&#x2F;ds&#x2F;dmc&#x2F;dmc-repo&#x2F;shared&#x2F;bundle&#x2F;gems&#x2F;rest-client-2.0.0&#x2F;lib&#x2F;restclient&#x2F;abstract_response.rb</code> in <code><strong>return!</strong></code> </li> <li class="code system"> <ol start="96" class="pre-context" id="pre-2" onclick="toggle(2);"> <li class="pre-context-line"><code> else </code></li> <li class="pre-context-line"><code> raise exception_with_response </code></li> <li class="pre-context-line"><code> end </code></li> <li class="pre-context-line"><code> when 303 </code></li> <li class="pre-context-line"><code> check_max_redirects </code></li> <li class="pre-context-line"><code> follow_get_redirection(&amp;block) </code></li> <li class="pre-context-line"><code> else </code></li> </ol> <ol start="103" class="context" id="2" onclick="toggle(2);"> <li class="context-line" id="context-2"><code> raise exception_with_response</code></li> </ol> <ol start="104" class="post-context" id="post-2" onclick="toggle(2);"> <li class="post-context-line"><code> end </code></li> <li class="post-context-line"><code> end </code></li> <li class="post-context-line"><code> </code></li> <li class="post-context-line"><code> def to_i </code></li> <li class="post-context-line"><code> warn(&#x27;warning: calling Response#to_i is not recommended&#x27;) </code></li> <li class="post-context-line"><code> super </code></li> <li class="post-context-line"><code> end </code></li> </ol> <div class="clear"></div> </li> <li class="frame-info system"> <code>&#x2F;opt&#x2F;ds&#x2F;dmc&#x2F;dmc-repo&#x2F;shared&#x2F;bundle&#x2F;gems&#x2F;rest-client-2.0.0&#x2F;lib&#x2F;restclient&#x2F;request.rb</code> in <code><strong>process_result</strong></code> </li> <li class="code system"> <ol start="853" class="pre-context" id="pre-3" onclick="toggle(3);"> <li class="pre-context-line"><code> decoded = Request.decode(res[&#x27;content-encoding&#x27;], res.body) </code></li> <li class="pre-context-line"><code> response = Response.create(decoded, res, self) </code></li> <li class="pre-context-line"><code> end </code></li> <li class="pre-context-line"><code> </code></li> <li class="pre-context-line"><code> if block_given? </code></li> <li class="pre-context-line"><code> block.call(response, self, res, &amp; block) </code></li> <li class="pre-context-line"><code> else </code></li> </ol> <ol start="860" class="context" id="3" onclick="toggle(3);"> <li class="context-line" id="context-3"><code> response.return!(&amp;block)</code></li> </ol> <ol start="861" class="post-context" id="post-3" onclick="toggle(3);"> <li class="post-context-line"><code> end </code></li> <li class="post-context-line"><code> </code></li> <li class="post-context-line"><code> end </code></li> <li class="post-context-line"><code> </code></li> <li class="post-context-line"><code> def parser </code></li> <li class="post-context-line"><code> URI.const_defined?(:Parser) ? URI::Parser.new : URI </code></li> <li class="post-context-line"><code> end </code></li> </ol> <div class="clear"></div> </li> <li class="frame-info system"> <code>&#x2F;opt&#x2F;ds&#x2F;dmc&#x2F;dmc-repo&#x2F;shared&#x2F;bundle&#x2F;gems&#x2F;rest-client-2.0.0&#x2F;lib&#x2F;restclient&#x2F;request.rb</code> in <code><strong>block in transmit</strong></code> </li> <li class="code system"> <ol start="769" class="pre-context" id="pre-4" onclick="toggle(4);"> <li class="pre-context-line"><code> if @block_response </code></li> <li class="pre-context-line"><code> net_http_do_request(http, req, payload, &amp;@block_response) </code></li> <li class="pre-context-line"><code> else </code></li> <li class="pre-context-line"><code> res = net_http_do_request(http, req, payload) { |http_response| </code></li> <li class="pre-context-line"><code> fetch_body(http_response) </code></li> <li class="pre-context-line"><code> } </code></li> <li class="pre-context-line"><code> log_response res </code></li> </ol> <ol start="776" class="context" id="4" onclick="toggle(4);"> <li class="context-line" id="context-4"><code> process_result res, &amp; block</code></li> </ol> <ol start="777" class="post-context" id="post-4" onclick="toggle(4);"> <li class="post-context-line"><code> end </code></li> <li class="post-context-line"><code> end </code></li> <li class="post-context-line"><code> rescue EOFError </code></li> <li class="post-context-line"><code> raise RestClient::ServerBrokeConnection </code></li> <li class="post-context-line"><code> rescue Net::OpenTimeout =&gt; err </code></li> <li class="post-context-line"><code> raise RestClient::Exceptions::OpenTimeout.new(nil, err) </code></li> <li class="post-context-line"><code> rescue Net::ReadTimeout =&gt; err </code></li> </ol> <div class="clear"></div> </li> <li class="frame-info app"> <code>&#x2F;opt&#x2F;ds&#x2F;rbenv&#x2F;versions&#x2F;2.2.2&#x2F;lib&#x2F;ruby&#x2F;2.2.0&#x2F;net&#x2F;http.rb</code> in <code><strong>start</strong></code> </li> <li class="code app"> <ol start="846" class="pre-context" id="pre-5" onclick="toggle(5);"> <li class="pre-context-line"><code> # block; otherwise, it returns self. </code></li>
// alert('Hello world!');
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"html"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment