hotsh / rstat.us

Simple microblogging network based on the ostatus protocol.
http://rstat.us/
Other
722 stars 215 forks source link

Error when trying to follow someone on rstat.us from a new rstat.us node #741

Closed carols10cents closed 10 years ago

carols10cents commented 11 years ago

What happened:

I'm trying to set up a new node to document the process. I have this node up at https://rstatus-puma.herokuapp.com/ (I'm also testing out puma).

When I try to follow carols10cents@rstat.us using the remote follow form, I get this error:

2013-02-18T17:37:51+00:00 app[web.1]: Started POST "/subscriptions" for 71.206.217.11 at 2013-02-18 17:37:51 +0000
2013-02-18T17:37:52+00:00 app[web.1]: No ApiKey
2013-02-18T17:37:52+00:00 app[web.1]:   app/models/feed.rb:48:in `populate'
2013-02-18T17:37:52+00:00 app[web.1]: RuntimeError (redirection forbidden: http://rstat.us/feeds/4d8b4210c26df84a89000620.atom -> https://rstat.us/feeds/4d8b4210c26df84a89000620.atom):
2013-02-18T17:37:52+00:00 heroku[router]: at=info method=POST path=/subscriptions host=rstatus-puma.herokuapp.com fwd="71.206.217.11" dyno=web.1 queue=0 wait=0ms connect=1ms service=976ms status=500 bytes=728
2013-02-18T17:37:52+00:00 app[web.1]:   app/services/feed_service.rb:38:in `create_feed_from_feed_data'
2013-02-18T17:37:52+00:00 app[web.1]:   app/controllers/subscriptions_controller.rb:63:in `create'
2013-02-18T17:37:52+00:00 app[web.1]: 
2013-02-18T17:37:52+00:00 app[web.1]: Processing by SubscriptionsController#create as HTML
2013-02-18T17:37:52+00:00 app[web.1]:   Parameters: {"utf8"=>"✓", "authenticity_token"=>"I1/IuCrIPPdjNzrMscKHJM+esjSJOcdZtEGCXwyhymw=", "subscribe_to"=>"carols10cents@rstat.us"}
2013-02-18T17:37:52+00:00 app[web.1]: ** [Airbrake] Response from Airbrake: 
2013-02-18T17:37:52+00:00 app[web.1]: 
2013-02-18T17:37:52+00:00 app[web.1]:   app/models/feed.rb:34:in `create_and_populate!'
2013-02-18T17:37:52+00:00 app[web.1]: 
2013-02-18T17:37:52+00:00 app[web.1]: Completed 500 Internal Server Error in 809ms
2013-02-18T17:37:52+00:00 app[web.1]: 
2013-02-18T17:37:52+00:00 app[web.1]:   app/services/feed_service.rb:13:in `find_or_create!'
fmendez commented 10 years ago

With this fix when trying to follow any other valid user (e.g. fmendez@rstat.us ) it works, but for some reason this user: carols10cents@rstat.us gives another type of error (data related it seems), not sure if that user still valid.

Excerpt of the error:


  Completed 500 Internal Server Error in 940ms

  NoMethodError (undefined method `username' for nil:NilClass):
    app/controllers/subscriptions_controller.rb:67:in `create'