Closed sandbergja closed 4 months ago
These don't throw an error:
They do throw a ArgumentError error
ArgumentError
curl "https://allsearch-api.princeton.edu/search/best-bet?query=0%000" curl "https://allsearch-api.princeton.edu/search/database?query=0%000" curl "https://allsearch-api.princeton.edu/search/staff?query=0%000"
Probably pretty low, but it is unexpected/undefined behavior. And it means that there is a gap in our swagger documentation.
I found this with schemathesis. To try it locally from your allsearch_api directory:
brew install schemathesis schemathesis run swagger/v1/swagger.yaml --base-url="https://allsearch-api.princeton.edu/"
I think you can fix this with the rescue_uri_error method I created in https://github.com/pulibrary/allsearch_api/pull/241
Expected behavior
These don't throw an error:
Actual behavior
They do throw a
ArgumentError
errorSteps to replicate
Impact of this bug
Probably pretty low, but it is unexpected/undefined behavior. And it means that there is a gap in our swagger documentation.
Honeybadger links
Note
I found this with schemathesis. To try it locally from your allsearch_api directory: