ExLibrisGroup / SpineOMatic

Spine label printing for Ex Libris' Alma
MIT License
36 stars 18 forks source link

Error: Can't retrieve XML file #65

Closed 1degreve closed 1 year ago

1degreve commented 1 year ago

When the user scans a barcode, this message appears.

ERROR Can't retrieve XML file.

Error message: The remote server returned an error: (500) Internal Server Error.

I checked for updates and updated to 8.1.2, but the error message remains. Everything was working correctly last week. This week the error message began appearing.

mgobat commented 1 year ago

@1degreve, this may be caused by several reasons. To try to get more details, please do the following:

  1. Go the the "Alma Access" tab in SpineOMatic.
  2. Copy the "ALMA URL" field to a text file.
  3. Copy the "Method" field and paste it after the "ALMA URL" field in the text file.
  4. Replace the string {item_barcode} with the real item barcode you are scanning.
  5. After the barcode, type the string "&apiKey=" in the text file.
  6. Copy the "API Key" field after the "apiKey=" in the text file.
  7. Copy the entire URL from the text file and paste it into your browser address bar, hit enter.
  8. Please report back here the response you get.
1degreve commented 1 year ago

This is what happens when I followed the instructions you provided:

This XML file does not appear to have any style information associated with it. The document tree is shown below.

soapenv:Server Policy Falsified http://api-na.hosted.exlibrisgroup.com/almaws/v1/items?view=label&item_barcode=32811001627142apiKey=API_KEY_HERE
mgobat commented 1 year ago

@1degreve, I forgot the ampersand before the "apiKey=" in my original instructions (fixed). Even with the ampersand, it gives the following (with your API key scrubbed...don't want that public):

`

soapenv:Server Policy Falsified http://api-na.hosted.exlibrisgroup.com/almaws/v1/items?view=label&item_barcode=32811001627142&apiKey=API_KEY_HERE ` So this problem is outside the scope of SpineOMatic. I suggest you open a case with Support. They are better equipped to diagnose a problem with Alma APIs not working.
1degreve commented 1 year ago

Thanks for your help. I will follow up with support.