Link grabber fails to parse Khan Academy video page


(Mikulas Dite) #1

Creating a post (or pm) with the following link results in e500:
https://www.khanacademy.org/science/health-and-medicine/circulatory-system-diseases/heart-disease-and-stroke/v/strokes

Editing an existing post by adding this links fails silently, seemingly updating the post but failing to persist.

Started POST "/posts" for 79.98.75.249 at 2014-03-29 11:23:21 +0100
Processing by PostsController#create as */*
  Parameters: {"raw"=>"https://www.khanacademy.org/science/health-and-medicine/circulatory-system-diseases/heart-disease-and-stroke/v/strokes\n", "reply_to_post_number"=>"", "archetype"=>"private_message", "title"=>"https://www.khanacademy.org/science/health-and-medicine/circulatory-system-diseases/heart-disease-and-stroke/v/strokes", "target_usernames"=>"system", "auto_close_time"=>""}
Completed 500 Internal Server Error in 309ms

EOFError (end of file reached):
  lib/oneboxer.rb:36:in `cached_onebox'
  app/models/post_analyzer.rb:16:in `block in cook'
  lib/oneboxer.rb:76:in `block in apply'
  lib/oneboxer.rb:62:in `block in each_onebox_link'
  lib/oneboxer.rb:60:in `each_onebox_link'
  lib/oneboxer.rb:75:in `apply'
  app/models/post_analyzer.rb:14:in `cook'
  app/models/post_analyzer.rb:104:in `cooked_document'
  app/models/post_analyzer.rb:49:in `raw_mentions'
  app/models/post.rb:129:in `block (2 levels) in <class:Post>'
  lib/validators/post_validator.rb:38:in `max_mention_validator'
  lib/validators/post_validator.rb:9:in `validate'
  lib/post_creator.rb:216:in `save_post'
  lib/post_creator.rb:60:in `block in create'
  lib/post_creator.rb:56:in `create'
  app/controllers/posts_controller.rb:36:in `block in create'
  lib/distributed_memoizer.rb:28:in `memoize'
  app/controllers/posts_controller.rb:34:in `create'
  lib/middleware/anonymous_cache.rb:104:in `call'
  config/initializers/quiet_logger.rb:10:in `call_with_quiet_assets'
  config/initializers/silence_logger.rb:19:in `call'

(Mikulas Dite) #2

Seems to be the same issue as in


(Jeff Atwood) #3