Skip to content

Instantly share code, notes, and snippets.

@timuruski
Created June 24, 2013 14:03
Show Gist options
  • Save timuruski/5850267 to your computer and use it in GitHub Desktop.
Save timuruski/5850267 to your computer and use it in GitHub Desktop.
A crash log from artoo-sphero using the RESTful JSON API to send commands to the robot. The arguments aren't being properly extracted from the params JSON.
I, [2013-06-24T07:59:52.637038 #81716] INFO -- : Registering connection 'sphero'...
I, [2013-06-24T07:59:52.637189 #81716] INFO -- : Registering device 'sphero'...
I, [2013-06-24T07:59:52.637267 #81716] INFO -- : Registering api...
I, [2013-06-24T07:59:52.637360 #81716] INFO -- : Preparing work...
I, [2013-06-24T07:59:52.638257 #81716] INFO -- : Initializing connection sphero...
I, [2013-06-24T07:59:52.642030 #81716] INFO -- : Initializing device sphero...
I, [2013-06-24T07:59:52.659422 #81716] INFO -- : Starting work...
I, [2013-06-24T07:59:52.660004 #81716] INFO -- : Connecting to 'sphero' on port '127.0.0.1:8023'...
I, [2013-06-24T07:59:52.752968 #81716] INFO -- : Starting driver 'Artoo::Drivers::Sphero'...
Hello from the API running at 127.0.0.1:4321...
E, [2013-06-24T08:00:45.159734 #81716] ERROR -- : Artoo::Adaptors::Sphero crashed!
ArgumentError: wrong number of arguments (1 for 3)
/Users/timuruski/workspace/sphero-web/vendor/bundle/ruby/1.9.1/gems/hybridgroup-sphero-1.3.0/lib/sphero.rb:107:in `rgb'
/Users/timuruski/workspace/artoo-sphero/lib/artoo/adaptors/sphero.rb:54:in `method_missing'
/Users/timuruski/workspace/sphero-web/vendor/bundle/ruby/1.9.1/gems/celluloid-0.14.1/lib/celluloid/calls.rb:25:in `public_send'
/Users/timuruski/workspace/sphero-web/vendor/bundle/ruby/1.9.1/gems/celluloid-0.14.1/lib/celluloid/calls.rb:25:in `dispatch'
/Users/timuruski/workspace/sphero-web/vendor/bundle/ruby/1.9.1/gems/celluloid-0.14.1/lib/celluloid/calls.rb:67:in `dispatch'
/Users/timuruski/workspace/sphero-web/vendor/bundle/ruby/1.9.1/gems/celluloid-0.14.1/lib/celluloid/actor.rb:326:in `block in handle_message'
/Users/timuruski/workspace/sphero-web/vendor/bundle/ruby/1.9.1/gems/celluloid-0.14.1/lib/celluloid/tasks.rb:42:in `block in initialize'
/Users/timuruski/workspace/sphero-web/vendor/bundle/ruby/1.9.1/gems/celluloid-0.14.1/lib/celluloid/tasks/task_fiber.rb:11:in `block in create'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment