Skip to main content
ExLibris

Knowledge Assistant

BETA
 
  • Subscribe by RSS
  • Back
    Primo

     

    Ex Libris Knowledge Center
    1. Search site
      Go back to previous article
      1. Sign in
        • Sign in
        • Forgot password
    1. Home
    2. Primo
    3. Knowledge Articles
    4. Eshelf REST APIs return "Invalid URI Syntax" errors when using API Explorer.

    Eshelf REST APIs return "Invalid URI Syntax" errors when using API Explorer.

    1. Last updated
    2. Save as PDF
    3. Share
      1. Share
      2. Tweet
      3. Share
    1. Symptoms
    2. Defect Status
    3. Replication Steps
    4. Workaround
    • Product: Primo
    • Product Version: February 2016 Release
    • Relevant for Installation Type:  Dedicated-Direct, Direct, Total Care

     

    Symptoms

    When using API Explorer to create Primo Eshelf REST APIs, an error is always returned for GET, POST, PUT, & DELETE methods:

     

    {
       "error": "Invalid URI syntax for target endpoint: Illegal character in path at index 64: https://api-na.hosted.exlibrisgroup.com/primo/v1/eshelf/pparker/
      {
        path : .+
      }" 
    }
    

    This is caused because the path parameter {path : .+} is not substituted correctly by API Explorer.

    Defect Status

    The Eshelf REST API is actually working correctly here.

    The problem is with the API Explorer, and a Defect is open with API Explorer software vendor.

    Replication Steps

    1. Sign in to Developers Network.
    2. Go to API Explorer - https://developers.exlibrisgroup.com...a/api-explorer
    3. Select API = Primo eShelf (beta)
    4. Select Resource = /primo/v1/eshelf/{userid}/{path : .+}
    5. Select Method = does not matter
    6. Select appropriate API Application & Authentication (API Key)
    7. Complete Eshelf path parameter value
    8. Complete userid parameter value
    9. Leave inst parameter value blank
    10. Click Execute Request button
    11. "Invalid URI Syntax..." error is returned in Response tab

     

    clipboard_e222d424b0229590a92a5d6386b903366

    Workaround

    1. On Request tab, click Add Parameter
    2. Name=path : .+
    3. Value=<your desired path>
    *to DELETE an item, use <your desired path>/<pnxId>
    1. select Parameter Type=Template
    2. Click Add, Execute Request

     

    clipboard_e38e98a260caefe04f94b28d62bf4e04b

     

    clipboard_e13646cfeb09ceb647016b5b25857ea4f

     

    This technique will work with GET, POST, PUT, & DELETE Eshelf API methods.

     

     

     

     


    • Article last edited: 20-April-2016
    View article in the Exlibris Knowledge Center
    1. Back to top
      • Errors in ARS mhs_msg.log: Failure retrieving title/author for item_id
      • Ex Libris Offices' IP Addresses
    • Was this article helpful?

    Recommended articles

    1. Article type
      Topic
      Community Content Type
      How To
      Content Type
      Knowledge Article
      Language
      English
      Product
      Primo
    2. Tags
      1. API
      2. API Explorer
      3. Eshelf
      4. Primo
      5. REST
      6. rest API
      7. RESTful API
      8. URI
    1. © Copyright 2025 Ex Libris Knowledge Center
    2. Powered by CXone Expert ®
    • Term of Use
    • Privacy Policy
    • Contact Us
    2025 Ex Libris. All rights reserved