Skip to content

Instantly share code, notes, and snippets.

@mark-dce
Created November 29, 2017 03:46
Show Gist options
  • Save mark-dce/4eb9d7aac82e96ac61c3faf5e4d716f9 to your computer and use it in GitHub Desktop.
Save mark-dce/4eb9d7aac82e96ac61c3faf5e4d716f9 to your computer and use it in GitHub Desktop.
ArgumentError in Hyrax::AudiosController#create
ArgumentError in Hyrax::AudiosController#create
Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true
Extracted source (around line #30):
def document_url
key = document.model_name.singular_route_key
Rails.application.routes.url_helpers.send(key + "_url", document.id)
end
end
end
Rails.root: /Users/mark/_no_backup_/RubyMine Projects/epigaea
Application Trace | Framework Trace | Full Trace
actionpack (5.0.4) lib/action_dispatch/http/url.rb:62:in `full_url_for'
actionpack (5.0.4) lib/action_dispatch/http/url.rb:52:in `url_for'
actionpack (5.0.4) lib/action_dispatch/routing/route_set.rb:303:in `block in <class:RouteSet>'
actionpack (5.0.4) lib/action_dispatch/routing/route_set.rb:719:in `url_for'
actionpack (5.0.4) lib/action_dispatch/routing/route_set.rb:236:in `call'
actionpack (5.0.4) lib/action_dispatch/routing/route_set.rb:177:in `call'
actionpack (5.0.4) lib/action_dispatch/routing/route_set.rb:295:in `block (2 levels) in define_url_helper'
app/services/hyrax/workflow/mira_notification.rb:30:in `document_url'
app/services/hyrax/workflow/self_deposit_notification.rb:13:in `message'
hyrax (2.0.0) app/services/hyrax/workflow/abstract_notification.rb:52:in `block in call'
hyrax (2.0.0) app/services/hyrax/workflow/abstract_notification.rb:51:in `each'
hyrax (2.0.0) app/services/hyrax/workflow/abstract_notification.rb:51:in `call'
hyrax (2.0.0) app/services/hyrax/workflow/abstract_notification.rb:29:in `send_notification'
hyrax (2.0.0) app/services/hyrax/workflow/notification_service.rb:42:in `send_notification'
hyrax (2.0.0) app/services/hyrax/workflow/notification_service.rb:35:in `block in call'
activerecord (5.0.4) lib/active_record/relation/delegation.rb:38:in `each'
activerecord (5.0.4) lib/active_record/relation/delegation.rb:38:in `each'
hyrax (2.0.0) app/services/hyrax/workflow/notification_service.rb:34:in `call'
hyrax (2.0.0) app/services/hyrax/workflow/notification_service.rb:21:in `deliver_on_action_taken'
hyrax (2.0.0) app/services/hyrax/workflow/workflow_action_service.rb:38:in `handle_sipity_notifications'
hyrax (2.0.0) app/services/hyrax/workflow/workflow_action_service.rb:20:in `run'
hyrax (2.0.0) app/services/hyrax/workflow/workflow_action_service.rb:6:in `run'
hyrax (2.0.0) app/services/hyrax/workflow/workflow_factory.rb:64:in `run_workflow_action!'
hyrax (2.0.0) app/services/hyrax/workflow/workflow_factory.rb:43:in `create'
hyrax (2.0.0) app/services/hyrax/workflow/workflow_factory.rb:22:in `create'
hyrax (2.0.0) app/actors/hyrax/actors/initialize_workflow_actor.rb:22:in `create_workflow'
hyrax (2.0.0) app/actors/hyrax/actors/initialize_workflow_actor.rb:15:in `create'
hyrax (2.0.0) app/actors/hyrax/actors/base_actor.rb:21:in `create'
hyrax (2.0.0) app/actors/hyrax/actors/model_actor.rb:14:in `create'
hyrax (2.0.0) app/actors/hyrax/actors/abstract_actor.rb:91:in `create'
hyrax (2.0.0) app/actors/hyrax/actors/abstract_actor.rb:91:in `create'
hyrax (2.0.0) app/actors/hyrax/actors/abstract_actor.rb:91:in `create'
hyrax (2.0.0) app/actors/hyrax/actors/apply_permission_template_actor.rb:10:in `create'
hyrax (2.0.0) app/actors/hyrax/actors/default_admin_set_actor.rb:14:in `create'
hyrax (2.0.0) app/actors/hyrax/actors/transfer_request_actor.rb:9:in `create'
hyrax (2.0.0) app/actors/hyrax/actors/interpret_visibility_actor.rb:89:in `create'
hyrax (2.0.0) app/actors/hyrax/actors/abstract_actor.rb:91:in `create'
hyrax (2.0.0) app/actors/hyrax/actors/abstract_actor.rb:91:in `create'
hyrax (2.0.0) app/actors/hyrax/actors/add_to_work_actor.rb:8:in `create'
hyrax (2.0.0) app/actors/hyrax/actors/collections_membership_actor.rb:9:in `create'
hyrax (2.0.0) app/actors/hyrax/actors/create_with_files_actor.rb:10:in `create'
hyrax (2.0.0) app/actors/hyrax/actors/create_with_remote_files_actor.rb:13:in `create'
hyrax (2.0.0) app/actors/hyrax/actors/abstract_actor.rb:91:in `create'
hyrax (2.0.0) app/actors/hyrax/actors/transactional_request.rb:11:in `block in create'
activerecord (5.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:232:in `block in transaction'
activerecord (5.0.4) lib/active_record/connection_adapters/abstract/transaction.rb:189:in `within_new_transaction'
activerecord (5.0.4) lib/active_record/connection_adapters/abstract/database_statements.rb:232:in `transaction'
activerecord (5.0.4) lib/active_record/transactions.rb:211:in `transaction'
hyrax (2.0.0) app/actors/hyrax/actors/transactional_request.rb:10:in `create'
hyrax (2.0.0) app/controllers/concerns/hyrax/works_controller_behavior.rb:58:in `create'
app/controllers/tufts/works_controller.rb:9:in `create'
actionpack (5.0.4) lib/action_controller/metal/basic_implicit_render.rb:4:in `send_action'
actionpack (5.0.4) lib/abstract_controller/base.rb:188:in `process_action'
actionpack (5.0.4) lib/action_controller/metal/rendering.rb:30:in `process_action'
actionpack (5.0.4) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
activesupport (5.0.4) lib/active_support/callbacks.rb:126:in `call'
activesupport (5.0.4) lib/active_support/callbacks.rb:506:in `block (2 levels) in compile'
activesupport (5.0.4) lib/active_support/callbacks.rb:455:in `call'
activesupport (5.0.4) lib/active_support/callbacks.rb:448:in `block (2 levels) in around'
activesupport (5.0.4) lib/active_support/callbacks.rb:286:in `block (2 levels) in halting'
react-rails (2.2.1) lib/react/rails/controller_lifecycle.rb:31:in `use_react_component_helper'
activesupport (5.0.4) lib/active_support/callbacks.rb:382:in `block in make_lambda'
activesupport (5.0.4) lib/active_support/callbacks.rb:285:in `block in halting'
activesupport (5.0.4) lib/active_support/callbacks.rb:447:in `block in around'
activesupport (5.0.4) lib/active_support/callbacks.rb:455:in `call'
activesupport (5.0.4) lib/active_support/callbacks.rb:101:in `__run_callbacks__'
activesupport (5.0.4) lib/active_support/callbacks.rb:750:in `_run_process_action_callbacks'
activesupport (5.0.4) lib/active_support/callbacks.rb:90:in `run_callbacks'
actionpack (5.0.4) lib/abstract_controller/callbacks.rb:19:in `process_action'
actionpack (5.0.4) lib/action_controller/metal/rescue.rb:20:in `process_action'
actionpack (5.0.4) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
activesupport (5.0.4) lib/active_support/notifications.rb:164:in `block in instrument'
activesupport (5.0.4) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
activesupport (5.0.4) lib/active_support/notifications.rb:164:in `instrument'
actionpack (5.0.4) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
actionpack (5.0.4) lib/action_controller/metal/params_wrapper.rb:248:in `process_action'
activerecord (5.0.4) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (5.0.4) lib/abstract_controller/base.rb:126:in `process'
actionview (5.0.4) lib/action_view/rendering.rb:30:in `process'
actionpack (5.0.4) lib/action_controller/metal.rb:190:in `dispatch'
actionpack (5.0.4) lib/action_controller/metal.rb:262:in `dispatch'
actionpack (5.0.4) lib/action_dispatch/routing/route_set.rb:50:in `dispatch'
actionpack (5.0.4) lib/action_dispatch/routing/route_set.rb:32:in `serve'
actionpack (5.0.4) lib/action_dispatch/journey/router.rb:39:in `block in serve'
actionpack (5.0.4) lib/action_dispatch/journey/router.rb:26:in `each'
actionpack (5.0.4) lib/action_dispatch/journey/router.rb:26:in `serve'
actionpack (5.0.4) lib/action_dispatch/routing/route_set.rb:725:in `call'
warden (1.2.7) lib/warden/manager.rb:36:in `block in call'
warden (1.2.7) lib/warden/manager.rb:35:in `catch'
warden (1.2.7) lib/warden/manager.rb:35:in `call'
rack (2.0.3) lib/rack/etag.rb:25:in `call'
rack (2.0.3) lib/rack/conditional_get.rb:38:in `call'
rack (2.0.3) lib/rack/head.rb:12:in `call'
rack (2.0.3) lib/rack/session/abstract/id.rb:232:in `context'
rack (2.0.3) lib/rack/session/abstract/id.rb:226:in `call'
actionpack (5.0.4) lib/action_dispatch/middleware/cookies.rb:613:in `call'
active-fedora (11.5.2) lib/active_fedora/ldp_cache.rb:26:in `call'
flipflop (2.3.1) lib/flipflop/feature_cache.rb:12:in `call'
activerecord (5.0.4) lib/active_record/migration.rb:553:in `call'
actionpack (5.0.4) lib/action_dispatch/middleware/callbacks.rb:38:in `block in call'
activesupport (5.0.4) lib/active_support/callbacks.rb:97:in `__run_callbacks__'
activesupport (5.0.4) lib/active_support/callbacks.rb:750:in `_run_call_callbacks'
activesupport (5.0.4) lib/active_support/callbacks.rb:90:in `run_callbacks'
actionpack (5.0.4) lib/action_dispatch/middleware/callbacks.rb:36:in `call'
actionpack (5.0.4) lib/action_dispatch/middleware/executor.rb:12:in `call'
actionpack (5.0.4) lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
actionpack (5.0.4) lib/action_dispatch/middleware/debug_exceptions.rb:49:in `call'
web-console (3.5.1) lib/web_console/middleware.rb:135:in `call_app'
web-console (3.5.1) lib/web_console/middleware.rb:28:in `block in call'
web-console (3.5.1) lib/web_console/middleware.rb:18:in `catch'
web-console (3.5.1) lib/web_console/middleware.rb:18:in `call'
actionpack (5.0.4) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
railties (5.0.4) lib/rails/rack/logger.rb:36:in `call_app'
railties (5.0.4) lib/rails/rack/logger.rb:24:in `block in call'
activesupport (5.0.4) lib/active_support/tagged_logging.rb:69:in `block in tagged'
activesupport (5.0.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (5.0.4) lib/active_support/tagged_logging.rb:69:in `tagged'
railties (5.0.4) lib/rails/rack/logger.rb:24:in `call'
sprockets-rails (3.2.0) lib/sprockets/rails/quiet_assets.rb:13:in `call'
actionpack (5.0.4) lib/action_dispatch/middleware/request_id.rb:24:in `call'
rack (2.0.3) lib/rack/method_override.rb:22:in `call'
rack (2.0.3) lib/rack/runtime.rb:22:in `call'
activesupport (5.0.4) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
actionpack (5.0.4) lib/action_dispatch/middleware/executor.rb:12:in `call'
actionpack (5.0.4) lib/action_dispatch/middleware/static.rb:136:in `call'
rack (2.0.3) lib/rack/sendfile.rb:111:in `call'
railties (5.0.4) lib/rails/engine.rb:522:in `call'
puma (3.9.1) lib/puma/configuration.rb:224:in `call'
puma (3.9.1) lib/puma/server.rb:602:in `handle_request'
puma (3.9.1) lib/puma/server.rb:435:in `process_client'
puma (3.9.1) lib/puma/server.rb:299:in `block in run'
puma (3.9.1) lib/puma/thread_pool.rb:120:in `block in spawn_thread'
Request
Parameters:
{"utf8"=>"✓",
"authenticity_token"=>"vWZuYK620dqIDG9PtQc5vRBsoiuB687KFol+xPeIiy0OjcPNquc1DKF6VcLxqKqQQtq72aviQ8NL+aXNg1KRYQ==",
"audio"=>
{"title"=>"First work",
"displays_in"=>["", "dl"],
"abstract"=>[""],
"accrual_policy"=>"",
"admin_start_date"=>[""],
"alternative_title"=>[""],
"audience"=>"",
"bibliographic_citation"=>[""],
"contributor"=>[""],
"corporate_name"=>[""],
"createdby"=>"",
"creator"=>[""],
"creator_department"=>[""],
"date_accepted"=>[""],
"date_available"=>[""],
"date_copyrighted"=>[""],
"date_issued"=>[""],
"date_modified"=>"",
"date_uploaded"=>"",
"description"=>[""],
"embargo_note"=>"",
"end_date"=>"",
"extent"=>[""],
"format_label"=>[""],
"funder"=>[""],
"genre"=>[""],
"has_format"=>[""],
"has_part"=>[""],
"held_by"=>[""],
"identifier"=>[""],
"internal_note"=>"",
"is_format_of"=>[""],
"is_replaced_by"=>[""],
"language"=>[""],
"legacy_pid"=>"",
"personal_name"=>[""],
"primary_date"=>[""],
"provenance"=>[""],
"publisher"=>[""],
"qr_note"=>[""],
"qr_status"=>[""],
"rejection_reason"=>[""],
"replaces"=>[""],
"resource_type"=>[""],
"retention_period"=>[""],
"rights_holder"=>[""],
"rights_note"=>"",
"geographic_name"=>[""],
"steward"=>"",
"subject"=>[""],
"table_of_contents"=>[""],
"temporal"=>[""],
"tufts_is_part_of"=>[""],
"tufts_license"=>[""],
"admin_set_id"=>"admin_set/default",
"member_of_collection_ids"=>[""],
"visibility"=>"open",
"visibility_during_embargo"=>"restricted",
"embargo_release_date"=>"2017-11-30",
"visibility_after_embargo"=>"open",
"visibility_during_lease"=>"open",
"lease_expiration_date"=>"2017-11-30",
"visibility_after_lease"=>"restricted"},
"uploaded_files"=>["1"],
"new_user_name_skel"=>"",
"new_user_permission_skel"=>"none",
"new_group_name_skel"=>"Select a group",
"new_group_permission_skel"=>"none"}
Toggle session dump
Toggle env dump
Response
Headers:
None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment