Skip to content

Instantly share code, notes, and snippets.

@bernd
Created November 12, 2012 18:31
Show Gist options
  • Save bernd/4061028 to your computer and use it in GitHub Desktop.
Save bernd/4061028 to your computer and use it in GitHub Desktop.
Webmachine Reel SystemStackError
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
#!/bin/bash
curl localhost:3000/test # works fine
curl localhost:3000/foo # throws SystemStackError
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