Hi,
I noticed recently that some API requests that previously worked are now returning HTTP 500 errors.
For example, this request returns a 500 error:
https://api.vam.ac.uk/v2/objects/search?id_category=THES394093&page_size=100&order_by=place&order_sort=asc&page=6
However, not all pages in the same result set fail. For example, this request succeeds:
https://api.vam.ac.uk/v2/objects/search?id_category=THES394093&page_size=100&order_by=place&order_sort=asc&page=11
The failing pages appear to be consistent; the same page numbers fail repeatedly.
I also noticed that adding response_format=prettyjson makes the previously failing requests succeed:
https://api.vam.ac.uk/v2/objects/search?id_category=THES394093&page_size=100&order_by=place&order_sort=asc&page=6&response_format=prettyjson
My suspicion is that some data in the response may be causing an issue in the default JSON response generation path, while the prettyjson response format handles it differently.
Could you please investigate whether there is an issue with the API response generation for these requests?
Thanks!
Hi,
I noticed recently that some API requests that previously worked are now returning HTTP 500 errors.
For example, this request returns a 500 error:
https://api.vam.ac.uk/v2/objects/search?id_category=THES394093&page_size=100&order_by=place&order_sort=asc&page=6
However, not all pages in the same result set fail. For example, this request succeeds:
https://api.vam.ac.uk/v2/objects/search?id_category=THES394093&page_size=100&order_by=place&order_sort=asc&page=11
The failing pages appear to be consistent; the same page numbers fail repeatedly.
I also noticed that adding response_format=prettyjson makes the previously failing requests succeed:
https://api.vam.ac.uk/v2/objects/search?id_category=THES394093&page_size=100&order_by=place&order_sort=asc&page=6&response_format=prettyjson
My suspicion is that some data in the response may be causing an issue in the default JSON response generation path, while the prettyjson response format handles it differently.
Could you please investigate whether there is an issue with the API response generation for these requests?
Thanks!