pulibrary / bibdata

Local API for retrieving bibliographic and other useful data from Alma (Ruby 3.1.0, Rails 7.1.3.4)
BSD 2-Clause "Simplified" License
16 stars 7 forks source link

Pointing orangetheses to main branch fails to generate the theses.json file #2346

Open christinach opened 4 months ago

christinach commented 4 months ago

Expected behavior

When running: ssh deploy@bibdata-alma-worker-staging1 cd opt/bibdata/current FILEPATH=/home/deploy/theses.json bundle exec rake orangetheses:cache_theses The rake task is expected to generate a new theses.json file with no errors.

Actual behavior

When running: ssh deploy@bibdata-alma-worker-staging1 cd opt/bibdata/current FILEPATH=/home/deploy/theses.json bundle exec rake orangetheses:cache_theses The rake task errors and fails to generate a theses.json file.

Steps to replicate

Use the orangetheses main branch the rake task errors. See [honeybadger error]. It triggers the following error: (https://github.com/pulibrary/orangetheses/tree/main) the rake task errors. See honeybadger error

JSON::ParserError: 859: unexpected token at 'Our apologies for the interruption in service. System maintenance is being performed and the site will be back online momentarily.'

Acceptance criteria:

Notes

Running a full reindex requires to retrieve theses from dspace and create a theses.json file running the following rake task in the opt/bibdata/current directory FILEPATH=/home/deploy/theses.json bundle exec rake orangetheses:cache_theses.