Skip to content

Instantly share code, notes, and snippets.

@grosscol
Created June 10, 2015 18:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grosscol/c9254b3c89d276c7cacd to your computer and use it in GitHub Desktop.
Save grosscol/c9254b3c89d276c7cacd to your computer and use it in GitHub Desktop.
Ldp::HttpError 500 from Sufia PCDM
Ldp::HttpError in CurationConcern::GenericWorksController#create
STATUS: 500 ...
Extracted source (around line #108):
106
107
108
109
110
111
resp.tap do |resp|
unless resp.success?
raise case resp.status
when 400
if resp.env.method == :head
# If the request was a HEAD request (which only retrieves HTTP headers),
Rails.root: /quod-dev/dev/grosscol/umrdr
Application Trace | Framework Trace | Full Trace
.bundle/ruby/2.2.0/gems/ldp-0.3.1/lib/ldp/client/methods.rb:108:in `block in check_for_errors'
.bundle/ruby/2.2.0/gems/ldp-0.3.1/lib/ldp/client/methods.rb:106:in `tap'
.bundle/ruby/2.2.0/gems/ldp-0.3.1/lib/ldp/client/methods.rb:106:in `check_for_errors'
.bundle/ruby/2.2.0/gems/ldp-0.3.1/lib/ldp/client/methods.rb:24:in `head'
.bundle/ruby/2.2.0/gems/ldp-0.3.1/lib/ldp/resource.rb:48:in `head'
.bundle/ruby/2.2.0/gems/ldp-0.3.1/lib/ldp/resource.rb:31:in `new?'
.bundle/ruby/2.2.0/gems/ldp-0.3.1/lib/ldp/resource/rdf_source.rb:31:in `graph'
.bundle/ruby/2.2.0/bundler/gems/active_fedora-57ac75495fca/lib/active_fedora/fedora_attributes.rb:68:in `resource'
.bundle/ruby/2.2.0/bundler/gems/active_fedora-57ac75495fca/lib/active_fedora/fedora_attributes.rb:9:in `get_values'
.bundle/ruby/2.2.0/gems/active-triples-0.7.0/lib/active_triples/property_builder.rb:41:in `create_date'
.bundle/ruby/2.2.0/bundler/gems/active_fedora-57ac75495fca/lib/active_fedora/fedora_attributes.rb:16:in `create_date'
.bundle/ruby/2.2.0/bundler/gems/active_fedora-57ac75495fca/lib/active_fedora/indexing_service.rb:54:in `c_time'
.bundle/ruby/2.2.0/bundler/gems/active_fedora-57ac75495fca/lib/active_fedora/indexing_service.rb:36:in `generate_solr_document'
.bundle/ruby/2.2.0/bundler/gems/hydra-pcdm-c8a4654e2dba/lib/hydra/pcdm/object_indexer.rb:4:in `generate_solr_document'
.bundle/ruby/2.2.0/bundler/gems/sufia-7558ae333bde/sufia-models/app/services/sufia/generic_work_indexing_service.rb:6:in `generate_solr_document'
.bundle/ruby/2.2.0/bundler/gems/active_fedora-57ac75495fca/lib/active_fedora/indexing.rb:15:in `to_solr'
.bundle/ruby/2.2.0/bundler/gems/sufia-7558ae333bde/sufia-models/app/models/concerns/sufia/works/curation_concern/human_readable_type.rb:17:in `to_solr'
.bundle/ruby/2.2.0/gems/hydra-access-controls-9.1.4/app/models/concerns/hydra/access_controls/permissions.rb:15:in `to_solr'
.bundle/ruby/2.2.0/bundler/gems/active_fedora-57ac75495fca/lib/active_fedora/indexing.rb:24:in `update_index'
.bundle/ruby/2.2.0/bundler/gems/active_fedora-57ac75495fca/lib/active_fedora/indexing.rb:46:in `create_record'
.bundle/ruby/2.2.0/bundler/gems/active_fedora-57ac75495fca/lib/active_fedora/callbacks.rb:237:in `block (2 levels) in create_record'
.bundle/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:117:in `call'
.bundle/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:117:in `call'
.bundle/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
.bundle/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:505:in `call'
.bundle/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:505:in `call'
.bundle/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:92:in `_run_callbacks'
.bundle/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:776:in `_run_save_callbacks'
.bundle/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
.bundle/ruby/2.2.0/bundler/gems/active_fedora-57ac75495fca/lib/active_fedora/callbacks.rb:237:in `block in create_record'
.bundle/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:117:in `call'
.bundle/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:117:in `call'
.bundle/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
.bundle/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:505:in `call'
.bundle/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:505:in `call'
.bundle/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:92:in `_run_callbacks'
.bundle/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:776:in `_run_create_callbacks'
.bundle/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
.bundle/ruby/2.2.0/bundler/gems/active_fedora-57ac75495fca/lib/active_fedora/callbacks.rb:236:in `create_record'
.bundle/ruby/2.2.0/bundler/gems/active_fedora-57ac75495fca/lib/active_fedora/persistence.rb:144:in `create_or_update'
.bundle/ruby/2.2.0/bundler/gems/active_fedora-57ac75495fca/lib/active_fedora/persistence.rb:27:in `save'
.bundle/ruby/2.2.0/bundler/gems/active_fedora-57ac75495fca/lib/active_fedora/validations.rb:50:in `save'
.bundle/ruby/2.2.0/bundler/gems/sufia-7558ae333bde/sufia-models/app/actors/curation_concern/base_actor.rb:54:in `save'
.bundle/ruby/2.2.0/bundler/gems/sufia-7558ae333bde/sufia-models/app/actors/curation_concern/base_actor.rb:25:in `create'
.bundle/ruby/2.2.0/bundler/gems/sufia-7558ae333bde/sufia-models/app/actors/curation_concern/generic_work_actor.rb:9:in `create'
.bundle/ruby/2.2.0/bundler/gems/sufia-7558ae333bde/app/controllers/concerns/worthwhile/curation_concern_controller.rb:35:in `create'
.bundle/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
.bundle/ruby/2.2.0/gems/actionpack-4.2.1/lib/abstract_controller/base.rb:198:in `process_action'
.bundle/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_controller/metal/rendering.rb:10:in `process_action'
.bundle/ruby/2.2.0/gems/actionpack-4.2.1/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
.bundle/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:117:in `call'
.bundle/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:117:in `call'
.bundle/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
.bundle/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:505:in `call'
.bundle/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:505:in `call'
.bundle/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:92:in `_run_callbacks'
.bundle/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:776:in `_run_process_action_callbacks'
.bundle/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
.bundle/ruby/2.2.0/gems/actionpack-4.2.1/lib/abstract_controller/callbacks.rb:19:in `process_action'
.bundle/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_controller/metal/rescue.rb:29:in `process_action'
.bundle/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
.bundle/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/notifications.rb:164:in `block in instrument'
.bundle/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
.bundle/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/notifications.rb:164:in `instrument'
.bundle/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
.bundle/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
.bundle/ruby/2.2.0/gems/activerecord-4.2.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
.bundle/ruby/2.2.0/gems/actionpack-4.2.1/lib/abstract_controller/base.rb:137:in `process'
.bundle/ruby/2.2.0/gems/actionview-4.2.1/lib/action_view/rendering.rb:30:in `process'
.bundle/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_controller/metal.rb:196:in `dispatch'
.bundle/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
.bundle/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_controller/metal.rb:237:in `block in action'
.bundle/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/routing/route_set.rb:74:in `call'
.bundle/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/routing/route_set.rb:74:in `dispatch'
.bundle/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/routing/route_set.rb:43:in `serve'
.bundle/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/journey/router.rb:43:in `block in serve'
.bundle/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/journey/router.rb:30:in `each'
.bundle/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/journey/router.rb:30:in `serve'
.bundle/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/routing/route_set.rb:819:in `call'
.bundle/ruby/2.2.0/gems/railties-4.2.1/lib/rails/engine.rb:518:in `call'
.bundle/ruby/2.2.0/gems/railties-4.2.1/lib/rails/railtie.rb:194:in `public_send'
.bundle/ruby/2.2.0/gems/railties-4.2.1/lib/rails/railtie.rb:194:in `method_missing'
.bundle/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/routing/mapper.rb:51:in `serve'
.bundle/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/journey/router.rb:43:in `block in serve'
.bundle/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/journey/router.rb:30:in `each'
.bundle/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/journey/router.rb:30:in `serve'
.bundle/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/routing/route_set.rb:819:in `call'
.bundle/ruby/2.2.0/gems/warden-1.2.3/lib/warden/manager.rb:35:in `block in call'
.bundle/ruby/2.2.0/gems/warden-1.2.3/lib/warden/manager.rb:34:in `catch'
.bundle/ruby/2.2.0/gems/warden-1.2.3/lib/warden/manager.rb:34:in `call'
.bundle/ruby/2.2.0/gems/rack-1.6.1/lib/rack/etag.rb:24:in `call'
.bundle/ruby/2.2.0/gems/rack-1.6.1/lib/rack/conditionalget.rb:38:in `call'
.bundle/ruby/2.2.0/gems/rack-1.6.1/lib/rack/head.rb:13:in `call'
.bundle/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/params_parser.rb:27:in `call'
.bundle/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/flash.rb:260:in `call'
.bundle/ruby/2.2.0/gems/rack-1.6.1/lib/rack/session/abstract/id.rb:225:in `context'
.bundle/ruby/2.2.0/gems/rack-1.6.1/lib/rack/session/abstract/id.rb:220:in `call'
.bundle/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/cookies.rb:560:in `call'
.bundle/ruby/2.2.0/gems/activerecord-4.2.1/lib/active_record/query_cache.rb:36:in `call'
.bundle/ruby/2.2.0/gems/activerecord-4.2.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:649:in `call'
.bundle/ruby/2.2.0/bundler/gems/active_fedora-57ac75495fca/lib/active_fedora/ldp_cache.rb:26:in `call'
.bundle/ruby/2.2.0/gems/activerecord-4.2.1/lib/active_record/migration.rb:378:in `call'
.bundle/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
.bundle/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:88:in `call'
.bundle/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:88:in `_run_callbacks'
.bundle/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:776:in `_run_call_callbacks'
.bundle/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
.bundle/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
.bundle/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/reloader.rb:73:in `call'
.bundle/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
.bundle/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
.bundle/ruby/2.2.0/gems/web-console-2.1.2/lib/web_console/middleware.rb:29:in `call'
.bundle/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
.bundle/ruby/2.2.0/gems/railties-4.2.1/lib/rails/rack/logger.rb:38:in `call_app'
.bundle/ruby/2.2.0/gems/railties-4.2.1/lib/rails/rack/logger.rb:20:in `block in call'
.bundle/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/tagged_logging.rb:68:in `block in tagged'
.bundle/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/tagged_logging.rb:26:in `tagged'
.bundle/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/tagged_logging.rb:68:in `tagged'
.bundle/ruby/2.2.0/gems/railties-4.2.1/lib/rails/rack/logger.rb:20:in `call'
.bundle/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/request_id.rb:21:in `call'
.bundle/ruby/2.2.0/gems/rack-1.6.1/lib/rack/methodoverride.rb:22:in `call'
.bundle/ruby/2.2.0/gems/rack-1.6.1/lib/rack/runtime.rb:18:in `call'
.bundle/ruby/2.2.0/gems/activesupport-4.2.1/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
.bundle/ruby/2.2.0/gems/rack-1.6.1/lib/rack/lock.rb:17:in `call'
.bundle/ruby/2.2.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/static.rb:113:in `call'
.bundle/ruby/2.2.0/gems/rack-1.6.1/lib/rack/sendfile.rb:113:in `call'
.bundle/ruby/2.2.0/gems/railties-4.2.1/lib/rails/engine.rb:518:in `call'
.bundle/ruby/2.2.0/gems/railties-4.2.1/lib/rails/application.rb:164:in `call'
.bundle/ruby/2.2.0/gems/rack-1.6.1/lib/rack/content_length.rb:15:in `call'
.bundle/ruby/2.2.0/gems/puma-2.11.3/lib/puma/server.rb:507:in `handle_request'
.bundle/ruby/2.2.0/gems/puma-2.11.3/lib/puma/server.rb:375:in `process_client'
.bundle/ruby/2.2.0/gems/puma-2.11.3/lib/puma/server.rb:262:in `block in run'
.bundle/ruby/2.2.0/gems/puma-2.11.3/lib/puma/thread_pool.rb:104:in `call'
.bundle/ruby/2.2.0/gems/puma-2.11.3/lib/puma/thread_pool.rb:104:in `block in spawn_thread'
Request
Parameters:
{"utf8"=>"✓",
"authenticity_token"=>"fyXZVZcn9rRH491bQtGOc9GyJDnFDwDYkBsv/tjF409XxJYnwUXS4djY1hhwtlmq7vrObyoh0UxzGiwRMp9xwQ==",
"generic_work"=>{"resource_type"=>[""],
"title"=>["Foo"],
"creator"=>["BarBaz"],
"contributor"=>[""],
"description"=>[""],
"tag"=>["Kue"],
"rights"=>["",
"http://creativecommons.org/licenses/by/3.0/us/"],
"publisher"=>[""],
"date_created"=>[""],
"subject"=>[""],
"language"=>[""],
"identifier"=>[""],
"based_near"=>[""],
"related_url"=>[""]},
"visibility"=>"open",
"new_user_name_skel"=>"",
"new_user_permission_skel"=>"none",
"new_group_name_skel"=>"Select a group",
"new_group_permission_skel"=>"none",
"save_without_files"=>"Save without Files"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment