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

Error when ingesting RBDigital ebook collection: ...

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • None
    • None

      Error when ingesting RBDigital ebook collection:
      (CM v.2.2.5)

      The rbdigital_availability_monitor.log file has the following error upon initial ingest when the script is run manually:

      "level": "ERROR", "timestamp": "2018-09-04T08:00:07.283756", "app": "simplified", "traceback": "Traceback (most recent call last):\n File \"/var/www/circulation/core/scripts.py\", line 242, in do_run\n monitor.run()\n File \"/var/www/circulation/api/oneclick.py\", line 1028, in run\n super(OneClickCirculationMonitor, self).run()\n File \"/var/www/circulation/core/monitor.py\", line 161, in run\n new_timestamp_value = self.run_once(start, cutoff) or cutoff\n File \"/var/www/circulation/api/oneclick.py\", line 1032, in run_once\n ebook_count = self.process_availability(media_type='eBook')\n File \"/var/www/circulation/api/oneclick.py\", line 1006, in process_availability\n isbn = availability['isbn']\nTypeError: string indices must be integers", "message": "Error running monitor OneClick CirculationMonitor for collection XYZ Library - RBDigital: string indices must be integers", "filename": "scripts.py"

      I ran the three RBDigital scripts listed in the cron file in the following order:
      rbdigital_initial_import.log
      rbdigital_collection_delta.log
      rbdigital_availability_monitor.log

      There are no entries in the log files for the first two scripts. The error in the availability monitor script appears to be a bug, since even if no records were available or processed, the script should catch that and return an appropriate message.

      I need to do more investigation to see why it appears no records were returned. I'll update this if/as I discover more.

      Reporter: Robert Williams
      E-mail: williams@amigos.org

            risawolf Risa Wolf
            RobertWilliams Robert Williams [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: