Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visiting missing method URL raises 500 error #70

Closed
bf4 opened this issue Dec 16, 2013 · 6 comments
Closed

Visiting missing method URL raises 500 error #70

bf4 opened this issue Dec 16, 2013 · 6 comments

Comments

@bf4
Copy link

bf4 commented Dec 16, 2013

per mbleigh/acts-as-taggable-on#419

Visiting http://rubydoc.info/github/mbleigh/acts-as-taggable-on/master/ActsAsTaggableOn/Taggable:taggable_on returns a 500 error and

undefined method `gsub' for nil:NilClass
/home/deploy/.bundler/ruby/2.0.0/yard-b78dea29adaf/lib/yard/server/doc_server_helper.rb:43:in `url_for_frameset'
/home/deploy/.bundler/ruby/2.0.0/yard-b78dea29adaf/lib/yard/server/templates/default/layout/html/script_setup.erb:9:in `_erb_cache_2'
/home/deploy/.bundler/ruby/2.0.0/yard-b78dea29adaf/lib/yard/templates/template.rb:279:in `erb'
/home/deploy/.bundler/ruby/2.0.0/yard-b78dea29adaf/templates/default/layout/html/headers.erb:13:in `_erb_cache_1'
/home/deploy/.bundler/ruby/2.0.0/yard-b78dea29adaf/lib/yard/templates/template.rb:279:in `erb'
/home/deploy/.bundler/ruby/2.0.0/yard-b78dea29adaf/templates/default/layout/html/layout.erb:7:in `_erb_cache_0'
/home/deploy/.bundler/ruby/2.0.0/yard-b78dea29adaf/lib/yard/templates/template.rb:279:in `erb'
/home/deploy/.bundler/ruby/2.0.0/yard-b78dea29adaf/lib/yard/templates/template.rb:357:in `render_section'
/home/deploy/.bundler/ruby/2.0.0/yard-b78dea29adaf/lib/yard/templates/template.rb:251:in `block (2 levels) in run'
/home/deploy/.bundler/ruby/2.0.0/yard-b78dea29adaf/lib/yard/templates/template.rb:248:in `each'
/home/deploy/.bundler/ruby/2.0.0/yard-b78dea29adaf/lib/yard/templates/template.rb:248:in `block in run'
/home/deploy/.bundler/ruby/2.0.0/yard-b78dea29adaf/lib/yard/templates/template.rb:386:in `add_options'
/home/deploy/.bundler/ruby/2.0.0/yard-b78dea29adaf/lib/yard/templates/template.rb:247:in `run'
/home/deploy/.bundler/ruby/2.0.0/yard-b78dea29adaf/lib/yard/templates/template.rb:135:in `run'
/home/deploy/.bundler/ruby/2.0.0/yard-b78dea29adaf/lib/yard/templates/engine.rb:88:in `render'
/home/deploy/.bundler/ruby/2.0.0/yard-b78dea29adaf/lib/yard/code_objects/base.rb:480:in `format'
/home/deploy/.bundler/ruby/2.0.0/yard-b78dea29adaf/lib/yard/server/commands/base.rb:141:in `render'
/home/deploy/.bundler/ruby/2.0.0/yard-b78dea29adaf/lib/yard/server/commands/display_object_command.rb:23:in `run'
/home/deploy/.bundler/ruby/2.0.0/yard-b78dea29adaf/lib/yard/server/commands/base.rb:95:in `call'
/home/deploy/.bundler/ruby/2.0.0/yard-b78dea29adaf/lib/yard/server/commands/library_command.rb:65:in `call'
/home/deploy/.bundler/ruby/2.0.0/yard-b78dea29adaf/lib/yard/server/router.rb:135:in `route_docs'
/home/deploy/.bundler/ruby/2.0.0/yard-b78dea29adaf/lib/yard/server/router.rb:110:in `route'
/home/deploy/.bundler/ruby/2.0.0/yard-b78dea29adaf/lib/yard/server/router.rb:54:in `call'
/home/deploy/.bundler/ruby/2.0.0/yard-b78dea29adaf/lib/yard/server/rack_adapter.rb:51:in `call'
/var/www/apps/rubydoc.info/releases/20100829162740/app.rb:337:in `block in <class:DocServer>'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.4.3/lib/sinatra/base.rb:1540:in `call'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.4.3/lib/sinatra/base.rb:1540:in `block in compile!'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.4.3/lib/sinatra/base.rb:950:in `[]'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.4.3/lib/sinatra/base.rb:950:in `block (3 levels) in route!'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.4.3/lib/sinatra/base.rb:966:in `route_eval'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.4.3/lib/sinatra/base.rb:950:in `block (2 levels) in route!'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.4.3/lib/sinatra/base.rb:987:in `block in process_route'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.4.3/lib/sinatra/base.rb:985:in `catch'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.4.3/lib/sinatra/base.rb:985:in `process_route'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.4.3/lib/sinatra/base.rb:948:in `block in route!'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.4.3/lib/sinatra/base.rb:947:in `each'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.4.3/lib/sinatra/base.rb:947:in `route!'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.4.3/lib/sinatra/base.rb:1059:in `block in dispatch!'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.4.3/lib/sinatra/base.rb:1041:in `block in invoke'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.4.3/lib/sinatra/base.rb:1041:in `catch'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.4.3/lib/sinatra/base.rb:1041:in `invoke'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.4.3/lib/sinatra/base.rb:1056:in `dispatch!'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.4.3/lib/sinatra/base.rb:882:in `block in call!'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.4.3/lib/sinatra/base.rb:1041:in `block in invoke'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.4.3/lib/sinatra/base.rb:1041:in `catch'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.4.3/lib/sinatra/base.rb:1041:in `invoke'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.4.3/lib/sinatra/base.rb:882:in `call!'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.4.3/lib/sinatra/base.rb:870:in `call'
/var/www/apps/rubydoc.info/releases/20100829162740/app.rb:25:in `call'
/usr/local/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/head.rb:11:in `call'
/usr/local/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/conditionalget.rb:25:in `call'
/usr/local/lib/ruby/gems/2.0.0/gems/rack-protection-1.5.0/lib/rack/protection/xss_header.rb:18:in `call'
/usr/local/lib/ruby/gems/2.0.0/gems/rack-protection-1.5.0/lib/rack/protection/path_traversal.rb:16:in `call'
/usr/local/lib/ruby/gems/2.0.0/gems/rack-protection-1.5.0/lib/rack/protection/json_csrf.rb:18:in `call'
/usr/local/lib/ruby/gems/2.0.0/gems/rack-protection-1.5.0/lib/rack/protection/base.rb:49:in `call'
/usr/local/lib/ruby/gems/2.0.0/gems/rack-protection-1.5.0/lib/rack/protection/base.rb:49:in `call'
/usr/local/lib/ruby/gems/2.0.0/gems/rack-protection-1.5.0/lib/rack/protection/frame_options.rb:31:in `call'
/usr/local/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/logger.rb:15:in `call'
/usr/local/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/commonlogger.rb:33:in `call'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.4.3/lib/sinatra/base.rb:212:in `call'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.4.3/lib/sinatra/base.rb:205:in `call'
/usr/local/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/head.rb:11:in `call'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.4.3/lib/sinatra/base.rb:175:in `call'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.4.3/lib/sinatra/base.rb:1949:in `call'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.4.3/lib/sinatra/base.rb:1449:in `block in call'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.4.3/lib/sinatra/base.rb:1724:in `synchronize'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.4.3/lib/sinatra/base.rb:1724:in `synchronize'
/usr/local/lib/ruby/gems/2.0.0/gems/sinatra-1.4.3/lib/sinatra/base.rb:1449:in `call'
/usr/local/lib/ruby/gems/2.0.0/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:552:in `process_client'
/usr/local/lib/ruby/gems/2.0.0/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:632:in `worker_loop'
/usr/local/lib/ruby/gems/2.0.0/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:500:in `spawn_missing_workers'
/usr/local/lib/ruby/gems/2.0.0/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:142:in `start'
/usr/local/lib/ruby/gems/2.0.0/gems/unicorn-4.6.3/bin/unicorn:126:in `<top (required)>'
/usr/local/bin/unicorn:19:in `load'
/usr/local/bin/unicorn:19:in `<main>'
@lsegal
Copy link
Collaborator

lsegal commented Dec 16, 2013

That's because the #taggable_on method doesn't exist on that class.

http://rubydoc.info/github/mbleigh/acts-as-taggable-on/master/ActsAsTaggableOn/Taggable:acts_as_taggable_on

works.

@bf4
Copy link
Author

bf4 commented Dec 16, 2013

@lsegal I suppose I meant to highlight the 500 error and stacktrace as the issue, not the incorrect url. (Not sure where it came from)

@lsegal
Copy link
Collaborator

lsegal commented Dec 16, 2013

Fair enough, I will adjust the issue description then

@lsegal
Copy link
Collaborator

lsegal commented Dec 16, 2013

FYI this only happens for methods, not classes:

http://rubydoc.info/github/mbleigh/acts-as-taggable-on/master/INVALID/Taggable:taggable_on

Returns a 404

@bf4
Copy link
Author

bf4 commented Dec 16, 2013

Based on the stacktrace, should this be handled in both the rubydoc.info and yard, or just yard?

@lsegal
Copy link
Collaborator

lsegal commented Dec 28, 2019

Closing out this old issue due to inactivity. If this report is related to a production issue on rubydoc.info, it is very likely that the issue has since been resolved. If the issue is still persisting, feel free to comment or file an updated issue.

@lsegal lsegal closed this as completed Dec 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants