Closed mayaCostantini closed 2 years ago
/sig stack-guidance /priority important-soon
Doing a quick test:
pep@uio ~ $ http 'https://khemenu.thoth-station.ninja/api/v1/python/package/versions?name=pandas&page=3'
HTTP/1.1 400 BAD REQUEST
access-control-allow-origin: *
content-length: 119
content-type: application/problem+json
date: Mon, 12 Sep 2022 12:12:20 GMT
server: gunicorn
set-cookie: 99770cb82864be05282857f803e02327=4ed33bdc4b733c9d0f3e4a4e27c88554; path=/; HttpOnly; Secure; SameSite=None
x-thoth-search-ui-url: https://thoth-station.ninja/search/
x-thoth-version: 0.35.5
x-user-api-service-version: 0.35.5+messaging.0.16.2.storages.0.73.0.common.0.36.4.python.0.16.10
{
"detail": "Extra query parameter(s) page not in spec",
"status": 400,
"title": null,
"type": "about:blank"
}
Acceptance criteria
/triage accepted
Describe the bug As a user when I extend the API request with additional information. Following error is sent as an response. From https://sentry.io/share/issue/167ef7677bb447c7bc9d252b8124ae82/
With values
page : -1
andper_page : 25
Environment: aws-prod
To Reproduce See error report on Sentry