Danbooru

501 Error when attempting to view 'Recommened'

Posted under Bugs & Features

To replicate: In the `Posts` section, select 'Recommended'

What should appear: I don't actually know, I noticed this feature today. Probably a list of posts or something to that effect.

What does appear:

JSON::ParserError exception raised

765: unexpected token at '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <title>500 Internal Server Error</title> <h1>Internal Server Error</h1> <p>The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.</p> '
app/models/recommender_service.rb:31:in `block in recommend_for_user'
app/logical/cache.rb:18:in `get'
app/models/recommender_service.rb:21:in `recommend_for_user'
app/models/recommender_service.rb:56:in `recommend'
app/controllers/recommended_posts_controller.rb:20:in `load_posts'
app/controllers/recommended_posts_controller.rb:6:in `show'

Update: The 501 is fixed, but the 'Recommended page still gives me an error:

ActiveRecord::RecordNotFound exception raised

Couldn't find Post with 'id'=error
app/models/recommender_service.rb:33:in `recommend_for_user'
app/models/recommender_service.rb:56:in `recommend'
app/controllers/recommended_posts_controller.rb:20:in `load_posts'
app/controllers/recommended_posts_controller.rb:6:in `show'

1