instructure / canvas-lms

The open LMS by Instructure, Inc.
https://github.com/instructure/canvas-lms/wiki
GNU Affero General Public License v3.0
5.6k stars 2.48k forks source link

Error on creation of new Assignment of Type External Tools #128

Closed lauraeci closed 9 years ago

lauraeci commented 12 years ago

Following this example on https://github.com/instructure/lti_example. Created a new Assignment of Type External Tool pointing to my local lti_example service and I get this error message:

NoMethodError in AssignmentsController#show

undefined method `content_type' for nil:NilClass

Application Trace | Framework Trace | Full Trace /Library/Ruby/Gems/1.8/gems/activesupport-2.3.14/lib/active_support/whiny_nil.rb:52:in method_missing' /canvas/app/controllers/application_controller.rb:803:incontent_tag_redirect' /canvas/app/controllers/assignments_controller.rb:102:in show' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.14/lib/action_controller/mime_responds.rb:135:incall' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.14/lib/action_controller/mime_responds.rb:135:in custom' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.14/lib/action_controller/mime_responds.rb:179:incall' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.14/lib/action_controller/mime_responds.rb:179:in respond' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.14/lib/action_controller/mime_responds.rb:173:ineach' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.14/lib/action_controller/mime_responds.rb:173:in respond' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.14/lib/action_controller/mime_responds.rb:107:inrespond_to' /Users/lmarshall/Tools/canvas/app/controllers/assignments_controller.rb:94:in show' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:1333:insend' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:1333:in perform_action_without_filters' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:617:incall_filters' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:638:in run_before_filters' /Users/lmarshall/Tools/canvas/app/controllers/application_controller.rb:57:inset_locale' /Library/Ruby/Gems/1.8/gems/activesupport-2.3.14/lib/active_support/callbacks.rb:178:in send' /Library/Ruby/Gems/1.8/gems/activesupport-2.3.14/lib/active_support/callbacks.rb:178:inevaluate_method' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:186:in call' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:635:inrun_before_filters' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:615:in call_filters' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:610:inperform_action_without_benchmark' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.14/lib/action_controller/benchmarking.rb:68:in perform_action_without_rescue' /Library/Ruby/Gems/1.8/gems/activesupport-2.3.14/lib/active_support/core_ext/benchmark.rb:17:inms' /Library/Ruby/Gems/1.8/gems/activesupport-2.3.14/lib/active_support/core_ext/benchmark.rb:17:in ms' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.14/lib/action_controller/benchmarking.rb:68:inperform_action_without_rescue' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.14/lib/action_controller/rescue.rb:160:in perform_action_without_flash' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.14/lib/action_controller/flash.rb:151:inperform_action' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:532:in send' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:532:inprocess_without_filters' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.14/lib/action_controller/filters.rb:606:in process_without_compass' /Library/Ruby/Gems/1.8/gems/compass-0.11.5/lib/compass/app_integration/rails/actionpack2/action_controller.rb:7:inprocess' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:391:in process' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.14/lib/action_controller/base.rb:386:incall' /Library/Ruby/Gems/1.8/gems/actionpack-2.3.14/lib/action_controller/routing/route_set.rb:438:in `call'

simonista commented 9 years ago

Hey @lauraeci, sorry you never got a response about this. It's been so long now that I assume you have either moved on or figured it out. As far as I know, external tool assignments are currently working well, but let us know if this is still a problem.

lauraeci commented 9 years ago

Haha, yeah we've moved on. Thanks @simonista. :)