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

Indexing failing for cicognara item #1467

Open
hackartisan opened this issue Jul 21, 2023 — with Honeybadger · 0 comments
Open

Indexing failing for cicognara item #1467

hackartisan opened this issue Jul 21, 2023 — with Honeybadger · 0 comments

Comments

Copy link
Member

hackartisan commented Jul 21, 2023

[DPUL/production] NoMethodError: undefined method `resources' for nil:NilClass

      "arguments" => [
        "https://figgy.princeton.edu/concern/scanned_resources/e9cca8c2-f04a-463b-bf9f-e8352cb538b8/manifest",
        {"_aj_globalid" => "gid://pomegranate/Spotlight::Exhibit/105"}

Backtrace

line 56 of [PROJECT_ROOT]/app/services/iiif_manifest.rb: block in resources
line 54 of [PROJECT_ROOT]/app/services/iiif_manifest.rb: each
line 54 of [PROJECT_ROOT]/app/services/iiif_manifest.rb: flat_map

View full backtrace and more info at honeybadger.io

[PROJECT_ROOT]/app/services/iiif_manifest.rb:56 :in block in resources
[PROJECT_ROOT]/app/services/iiif_manifest.rb:54 :in each
[PROJECT_ROOT]/app/services/iiif_manifest.rb:54 :in flat_map
[PROJECT_ROOT]/app/services/iiif_manifest.rb:54 :in resources
[GEM_ROOT]/gems/blacklight-spotlight-3.5.0.2/app/models/spotlight/resources/iiif_manifest.rb:124 :in image_urls
[GEM_ROOT]/gems/blacklight-spotlight-3.5.0.2/app/models/spotlight/resources/iiif_manifest.rb:82 :in add_image_urls
[GEM_ROOT]/gems/blacklight-spotlight-3.5.0.2/app/models/spotlight/resources/iiif_manifest.rb:25 :in to_solr
[PROJECT_ROOT]/app/services/iiif_manifest.rb:15 :in to_solr
[GEM_ROOT]/gems/blacklight-spotlight-3.5.0.2/app/models/spotlight/resources/iiif_harvester.rb:23 :in block (2 levels) in indexing_pipeline
[GEM_ROOT]/gems/blacklight-spotlight-3.5.0.2/app/services/spotlight/etl/step.rb:24 :in block (2 levels) in call
[GEM_ROOT]/gems/blacklight-spotlight-3.5.0.2/app/services/spotlight/etl/step.rb:23 :in catch
[GEM_ROOT]/gems/blacklight-spotlight-3.5.0.2/app/services/spotlight/etl/step.rb:23 :in block in call
[GEM_ROOT]/gems/blacklight-spotlight-3.5.0.2/app/services/spotlight/etl/step.rb:69 :in block (2 levels) in with_logger
[GEM_ROOT]/gems/activesupport-6.1.7/lib/active_support/tagged_logging.rb:99 :in block in tagged
[GEM_ROOT]/gems/activesupport-6.1.7/lib/active_support/tagged_logging.rb:37 :in tagged
[GEM_ROOT]/gems/activesupport-6.1.7/lib/active_support/tagged_logging.rb:99 :in tagged
[GEM_ROOT]/gems/blacklight-spotlight-3.5.0.2/app/services/spotlight/etl/step.rb:68 :in block in with_logger
[GEM_ROOT]/gems/blacklight-spotlight-3.5.0.2/app/services/spotlight/etl/executor.rb:63 :in block (2 levels) in with_logger
[GEM_ROOT]/gems/activesupport-6.1.7/lib/active_support/tagged_logging.rb:99 :in block in tagged
[GEM_ROOT]/gems/activesupport-6.1.7/lib/active_support/tagged_logging.rb:37 :in tagged
[GEM_ROOT]/gems/activesupport-6.1.7/lib/active_support/tagged_logging.rb:99 :in tagged
[GEM_ROOT]/gems/blacklight-spotlight-3.5.0.2/app/services/spotlight/etl/executor.rb:61 :in block in with_logger
[GEM_ROOT]/gems/activesupport-6.1.7/lib/active_support/tagged_logging.rb:99 :in block in tagged
[GEM_ROOT]/gems/activesupport-6.1.7/lib/active_support/tagged_logging.rb:37 :in tagged
[GEM_ROOT]/gems/activesupport-6.1.7/lib/active_support/tagged_logging.rb:99 :in tagged
[GEM_ROOT]/gems/blacklight-spotlight-3.5.0.2/app/services/spotlight/etl/executor.rb:60 :in with_logger
[GEM_ROOT]/gems/blacklight-spotlight-3.5.0.2/app/services/spotlight/etl/step.rb:67 :in with_logger
[GEM_ROOT]/gems/blacklight-spotlight-3.5.0.2/app/services/spotlight/etl/step.rb:20 :in call
[GEM_ROOT]/gems/blacklight-spotlight-3.5.0.2/app/services/spotlight/etl/executor.rb:123 :in block in transform
[GEM_ROOT]/gems/blacklight-spotlight-3.5.0.2/app/services/spotlight/etl/executor.rb:186 :in block in compile_steps
[GEM_ROOT]/gems/blacklight-spotlight-3.5.0.2/app/services/spotlight/etl/executor.rb:180 :in each
[GEM_ROOT]/gems/blacklight-spotlight-3.5.0.2/app/services/spotlight/etl/executor.rb:180 :in compile_steps
[GEM_ROOT]/gems/blacklight-spotlight-3.5.0.2/app/services/spotlight/etl/executor.rb:123 :in each
[GEM_ROOT]/gems/blacklight-spotlight-3.5.0.2/app/services/spotlight/etl/executor.rb:123 :in inject
[GEM_ROOT]/gems/blacklight-spotlight-3.5.0.2/app/services/spotlight/etl/executor.rb:123 :in transform
[GEM_ROOT]/gems/blacklight-spotlight-3.5.0.2/app/services/spotlight/etl/executor.rb:35 :in block (3 levels) in call
[GEM_ROOT]/gems/blacklight-spotlight-3.5.0.2/app/services/spotlight/etl/executor.rb:34 :in catch
[GEM_ROOT]/gems/blacklight-spotlight-3.5.0.2/app/services/spotlight/etl/executor.rb:34 :in block (2 levels) in call
[GEM_ROOT]/gems/blacklight-spotlight-3.5.0.2/app/services/spotlight/etl/executor.rb:95 :in block in with_source
[GEM_ROOT]/gems/activesupport-6.1.7/lib/active_support/benchmarkable.rb:43 :in block in benchmark
/usr/local/lib/ruby/3.1.0/benchmark.rb:311 :in realtime
[GEM_ROOT]/gems/activesupport-6.1.7/lib/active_support/core_ext/benchmark.rb:14 :in ms
[GEM_ROOT]/gems/activesupport-6.1.7/lib/active_support/benchmarkable.rb:43 :in benchmark
[GEM_ROOT]/gems/blacklight-spotlight-3.5.0.2/app/services/spotlight/etl/executor.rb:94 :in with_source
[GEM_ROOT]/gems/blacklight-spotlight-3.5.0.2/app/services/spotlight/etl/executor.rb:33 :in block in call
[GEM_ROOT]/gems/blacklight-spotlight-3.5.0.2/app/services/spotlight/etl/executor.rb:110 :in block (2 levels) in extract
[GEM_ROOT]/gems/blacklight-spotlight-3.5.0.2/app/models/spotlight/resources/iiif_service.rb:62 :in each
[GEM_ROOT]/gems/blacklight-spotlight-3.5.0.2/app/models/spotlight/resources/iiif_service.rb:62 :in recursive_manifests
[GEM_ROOT]/gems/blacklight-spotlight-3.5.0.2/app/services/spotlight/etl/executor.rb:109 :in each
[GEM_ROOT]/gems/blacklight-spotlight-3.5.0.2/app/services/spotlight/etl/executor.rb:109 :in block in extract
[GEM_ROOT]/gems/blacklight-spotlight-3.5.0.2/app/services/spotlight/etl/executor.rb:186 :in block in compile_steps
[GEM_ROOT]/gems/blacklight-spotlight-3.5.0.2/app/services/spotlight/etl/executor.rb:180 :in each
[GEM_ROOT]/gems/blacklight-spotlight-3.5.0.2/app/services/spotlight/etl/executor.rb:180 :in compile_steps
[GEM_ROOT]/gems/blacklight-spotlight-3.5.0.2/app/services/spotlight/etl/executor.rb:108 :in each
[GEM_ROOT]/gems/blacklight-spotlight-3.5.0.2/app/services/spotlight/etl/executor.rb:108 :in extract
[GEM_ROOT]/gems/blacklight-spotlight-3.5.0.2/app/services/spotlight/etl/executor.rb:32 :in with_index
[GEM_ROOT]/gems/blacklight-spotlight-3.5.0.2/app/services/spotlight/etl/executor.rb:32 :in call
[GEM_ROOT]/gems/blacklight-spotlight-3.5.0.2/app/services/spotlight/etl/pipeline.rb:62 :in call
[GEM_ROOT]/gems/blacklight-spotlight-3.5.0.2/app/models/spotlight/resource.rb:56 :in block in reindex
[GEM_ROOT]/gems/activesupport-6.1.7/lib/active_support/callbacks.rb:98 :in run_callbacks
[GEM_ROOT]/gems/blacklight-spotlight-3.5.0.2/app/models/spotlight/resource.rb:55 :in reindex
[PROJECT_ROOT]/app/models/iiif_resource.rb:58 :in reindex
[PROJECT_ROOT]/app/jobs/spotlight/reindex_job.rb:46 :in block in perform
[PROJECT_ROOT]/app/jobs/spotlight/reindex_job.rb:45 :in each
[PROJECT_ROOT]/app/jobs/spotlight/reindex_job.rb:45 :in perform

@hackartisan hackartisan changed the title [DPUL/production] NoMethodError: undefined method `resources' for nil:NilClass Indexing failing for cicognara item Jul 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant