GET /api/v1/pages?limit=0 returns a server error instead of an empty list or a validation message.
API returns 500 when "limit" is 0
7 answers
Reproduced. The validator allowed 0 but the pager divided by it. Fixed in the next patch: values below 1 are now rejected with a 422 and a message. In the meantime use limit=1.
Tested on a fresh VPS: not reproducible. Maybe related to a plugin? Which ones do you run?
Workaround until it is fixed: clear the cache after saving.
Same behaviour here. It started after the 2.4 update.
I opened an internal ticket for this. Will update this topic when there is a fix.
Fix is merged for the next patch release. Thanks for the quick report!
Workaround until it is fixed: clear the cache after saving.
Thanks for the report. I could reproduce it with a clean install and the default theme.
This topic is locked. New replies are closed.
Back to Bug Reports
Worked, but I had to log out and back in first.