Created
November 12, 2012 18:31
-
-
Save bernd/4061028 to your computer and use it in GitHub Desktop.
Webmachine Reel SystemStackError
This file contains hidden or 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
E, [2012-11-12T19:31:43.657071 #21162] ERROR -- : Reel::Server crashed! | |
SystemStackError: stack level too deep | |
/home/bernd/.rvm/gems/ruby-1.9.3-p327/gems/celluloid-0.12.3/lib/celluloid/tasks/task_fiber.rb:44 |
This file contains hidden or 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
#!/bin/bash | |
curl localhost:3000/test # works fine | |
curl localhost:3000/foo # throws SystemStackError |
This file contains hidden or 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
require 'webmachine' | |
class Res < Webmachine::Resource | |
def to_html; "hello\n"; end | |
end | |
Webmachine.application.routes do | |
add ['test'], Res | |
end | |
Webmachine.application.configure do |config| | |
config.port = 3000 | |
config.adapter = :Reel | |
end | |
Webmachine.application.run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment