Skip to content

LibraryDatabaseLoadingService should handle 502 from lib-jobs gracefully #353

@maxkadel

Description

@maxkadel

Expected behavior

When retrieving the CSV from lib-jobs, if lib-jobs raises a 502 error, the service should re-try after a couple seconds.

Actual behavior

AllsearchAPI raises an error and does not continue trying to load the database entries.

Steps to replicate

n/a

Impact of this bug

Database information on the AllSearch might not be as up-to-date as expected.

Honeybadger link and code snippet, if applicable

Honeybadger error

OpenURI::HTTPError: 502 Bad Gateway
391 | throw :open_uri_redirect, loc_uri
-- | --
392 | else
393 | raise OpenURI::HTTPError.new(io.status.join(' '), io)
394 | end
395 | end


Implementation notes, if any

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛Something isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions