sul-dlss / purl-fetcher

An HTTP API for querying and updating PURLs
0 stars 1 forks source link

[purl-fetcher] NoMethodError: undefined method `files_by_md5' for nil #824

Closed jcoyne closed 3 months ago

jcoyne commented 3 months ago

Backtrace

line 11 of [PROJECT_ROOT]/app/controllers/v1/purls_controller.rb: show

View full backtrace and more info at honeybadger.io

justinlittman commented 3 months ago
On stage:
3.3.0 :005 > Purl.where.missing(:public_json).count
 => 102357

On prod:
3.3.0 :001 > Purl.where.missing(:public_json).count
 => 374845
jcoyne commented 3 months ago

There are many deleted ones in that count.

On stage:
Purl.status('public').where.missing(:public_json).count
 => 493