Created
June 12, 2011 12:24
-
-
Save niku/1021496 to your computer and use it in GitHub Desktop.
Rack::Lint::LintError occur
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/Users/niku% ruby --version | |
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.7.0] | |
/Users/niku% curl -H host:pow localhost/config.json | |
{"bin":"/Users/niku/Library/Application Support/Pow/Versions/0.3.1/bin/pow","dstPort":80,"httpPort":20559,"dnsPort":20560,"timeout":900,"workers":2,"domains":["dev"],"extDomains":[],"hostRoot":"/Users/niku/Library/Application Support/Pow/Hosts","logRoot":"/Users/niku/Library/Logs/Pow","rvmPath":"/Users/niku/.rvm/scripts/rvm"} | |
/Users/niku% mkdir lint_test | |
/Users/niku% echo "require 'rack'\nrequire 'rack/lobster'\n\nuse Rack::Lint\nrun Rack::Lobster.new\n" > lint_test/config.ru | |
/Users/niku% cat lint_test/config.ru | |
require 'rack' | |
require 'rack/lobster' | |
use Rack::Lint | |
run Rack::Lobster.new | |
/Users/niku% ln -s /Users/niku/lint_test /Users/niku/.pow/ | |
/Users/niku% ls ~/.pow/ | |
lint_test nwiki | |
/Users/niku% curl lint_test.dev | |
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Error starting application</title> | |
<style> | |
body { | |
margin: 0; | |
padding: 0; | |
background: #e0e0d8; | |
line-height: 18px; | |
} | |
div.page { | |
margin: 72px auto; | |
margin: 36px auto; | |
background: #fff; | |
border-radius: 18px; | |
-webkit-box-shadow: 0px 2px 7px #999; | |
-moz-box-shadow: 0px 2px 7px #999; | |
padding: 36px 90px; | |
width: 480px; | |
position: relative; | |
} | |
.big div.page { | |
width: 720px; | |
} | |
h1, h2, p, li { | |
font-family: Helvetica, sans-serif; | |
font-size: 13px; | |
} | |
h1 { | |
line-height: 45px; | |
font-size: 36px; | |
margin: 0; | |
} | |
h1:before { | |
font-size: 66px; | |
line-height: 42px; | |
position: absolute; | |
right: 576px; | |
} | |
.big h1:before { | |
right: 819px; | |
} | |
h1.ok { | |
color: #060; | |
} | |
h1.ok:before { | |
content: "✓"; | |
color: #090; | |
} | |
h1.err { | |
color: #600; | |
} | |
h1.err:before { | |
content: "✗"; | |
color: #900; | |
} | |
h2 { | |
line-height: 27px; | |
font-size: 18px; | |
font-weight: normal; | |
margin: 0; | |
} | |
a, pre span { | |
color: #776; | |
} | |
h2, p, pre { | |
color: #222; | |
} | |
pre { | |
white-space: pre-wrap; | |
font-size: 13px; | |
} | |
pre, code { | |
font-family: Menlo, Monaco, monospace; | |
} | |
p code { | |
font-size: 12px; | |
} | |
pre.breakout { | |
border-top: 1px solid #ddd; | |
border-bottom: 1px solid #ddd; | |
background: #fafcf4; | |
margin-left: -90px; | |
margin-right: -90px; | |
padding: 8px 0 8px 90px; | |
} | |
pre.small_text { | |
font-size: 10px; | |
} | |
pre.small_text strong { | |
font-size: 13px; | |
} | |
ul { | |
padding: 0; | |
} | |
li { | |
list-style-type: none; | |
} | |
</style> | |
</head> | |
<body class="big"> | |
<div class="page"> | |
<h1 class="err">Error starting application</h1> | |
<h2>Your Rack app raised an exception when Pow tried to run it.</h2> | |
<section> | |
<pre class="breakout small_text"><strong>Rack::Lint::LintError: rack.input #<StringIO:0x000001008d76c8> does not have ASCII-8BIT as its external encoding</strong> | |
~/.rvm/gems/ruby-1.9.2-p180/gems/rack-1.3.0/lib/rack/lint.rb:19:in `assert' | |
~/.rvm/gems/ruby-1.9.2-p180/gems/rack-1.3.0/lib/rack/lint.rb:271:in `check_input' | |
~/.rvm/gems/ruby-1.9.2-p180/gems/rack-1.3.0/lib/rack/lint.rb:226:in `check_env' | |
~/.rvm/gems/ruby-1.9.2-p180/gems/rack-1.3.0/lib/rack/lint.rb:42:in `_call' | |
~/.rvm/gems/ruby-1.9.2-p180/gems/rack-1.3.0/lib/rack/lint.rb:36:in `call' | |
<a href="#" onclick="this.style.display='none',this.nextSibling.style.display='';return false">Show 9 more lines</a><div style="display: none">~/Library/Application Support/Pow/Versions/0.3.1/node_modules/nack/lib/nack/server.rb:146:in `handle' | |
~/Library/Application Support/Pow/Versions/0.3.1/node_modules/nack/lib/nack/server.rb:99:in `rescue in block (2 levels) in start' | |
~/Library/Application Support/Pow/Versions/0.3.1/node_modules/nack/lib/nack/server.rb:96:in `block (2 levels) in start' | |
~/Library/Application Support/Pow/Versions/0.3.1/node_modules/nack/lib/nack/server.rb:86:in `each' | |
~/Library/Application Support/Pow/Versions/0.3.1/node_modules/nack/lib/nack/server.rb:86:in `block in start' | |
~/Library/Application Support/Pow/Versions/0.3.1/node_modules/nack/lib/nack/server.rb:66:in `loop' | |
~/Library/Application Support/Pow/Versions/0.3.1/node_modules/nack/lib/nack/server.rb:66:in `start' | |
~/Library/Application Support/Pow/Versions/0.3.1/node_modules/nack/lib/nack/server.rb:13:in `run' | |
~/Library/Application Support/Pow/Versions/0.3.1/node_modules/nack/bin/nack_worker:4:in `<main>'</div></pre> | |
<p>(If your app uses Bundler, check to make sure you have the <a href="http://gembundler.com/">latest version</a>, then run <code>bundle install</code>. If you’re using rvm, make sure you have the <a href="https://rvm.beginrescueend.com/rvm/upgrading/">latest version</a> installed and your app is using the right gemset.)</p> | |
</section> | |
<ul> | |
<li><a href="http://pow.cx/manual">Pow User’s Manual</a></li> | |
<li><a href="https://github.com/37signals/pow/wiki/Troubleshooting">Troubleshooting</a></li> | |
<li><a href="https://github.com/37signals/pow/wiki/FAQ">Frequently Asked Questions</a></li> | |
<li><a href="https://github.com/37signals/pow/issues">Issue Tracker</a></li> | |
</ul> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment