Skip to content

Search: Handle errors when queried ID does not belong to ID space #12

@vigliensoni

Description

@vigliensoni

As it is now, the API returns an ugly:

pysolr.SolrError
SolrError: Solr responded with an error (HTTP 400): [Reason: Invalid Number: 529919a8e4b0bd2cefcdf1ee]

when making a query with a specific ID space and and ID that does not belong to it. For example:

http://localhost:5000/api?facebook_artist=529919a8e4b0bd2cefcdf1ee

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions