You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GET /tasks answers 500 to an expired or malformed page_token, although it is a client error. page_size isn't validated: there is no upper limit, and very large values wrap around.
How?
Answer 400 Bad Request for a page_token that can't be used, with a message that names the parameter.
Validate page_size: positive, with a documented maximum (e.g. 2048, which the API description once named); 400 otherwise.
Regression tests first; update docs/api.md ("Listing tasks") and docs/upgrading.md.
Acceptance criteria
Invalid or expired page_token -> 400.
page_size outside the allowed range -> 400; the limit is documented.
Activity