Uploaded image for project: 'SimplyE 2.0'
  1. SimplyE 2.0
  2. SIMPLY-1729

Don't make Overdrive API requests immediately upon instantiation of an OverdriveAPI object

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: High High
    • 2.3.2cm
    • Server - Core
    • None
    • S5 SIMPLY Feb 20 - March 5

      If you misconfigure an Overdrive integration, the circulation manager won't start up. This is because the startup process involves instantiating an OverdriveAPI object for every library that has an Overdrive collection, and instantiating an OverdriveAPI will immediately try to make an API request, and raise an exception if it can't (because the credentials are bad).

      The cleanest way to fix this is to make OverdriveAPI stop making API requests immediately upon instantiation – let it fail when someone actually wants to make a request.

      The most general way to fix this is to catch the exception and let the server start up anyway with an incomplete CirculationAPI for the affected library.

            leonardrichardson Leonard Richardson [X] (Inactive)
            leonardrichardson Leonard Richardson [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: