SpringAll
SpringAll copied to clipboard
undefined method `[]'
After just about every AJAX request I get a 500 error and the following on the log:
Started POST "/status_messages" for #IP# at Thu Sep 16 22:44:59 -0400 2010
Processing by StatusMessagesController#create as JS
Parameters: {"authenticity_token"=>"Lh7RxaCNvHK/H6NJlaE0HzEoAzP91gu6Dc3yrLtpuKg=", "utf8"=>"✓", "aspect_ids"=>["4c92d132b8ccf768b1000017", "4c92d132b8ccf768b1000018"], "status_message"=>{"message"=>"Test"}}
Rendered comments/_new_comment.html.haml (2.1ms)
Rendered comments/_comments.html.haml (3.2ms)
Rendered status_messages/_status_message.html.haml (7.9ms)
Websocketing to 4c92d132b8ccf768b1000015
Completed in 23ms
NoMethodError (undefined method '[]' for nil:NilClass):
/lib/diaspora/websocket.rb:15:in 'push_to_user'
app/controllers/sockets_controller.rb:17:in 'outgoing'
/lib/diaspora/websocket.rb:41:in 'socket_to_uid'
app/models/user.rb:113:in 'post'
app/controllers/status_messages_controller.rb:14:in 'create'
The POST does get through to the database, but there's an error in the response or something.
Does this still happen?