19038: Page token must be bigger than or equal to 0
CHAT
ERROR
This error occurs when you request Chat resources with a PageToken value that is less than 0. PageToken must be a non-negative integer when you paginate through results.
- The request includes a
PageTokenquery parameter with a negative value - Your application decrements the page token below
0while paginating through Chat messages or other list results - A client-side validation issue allows an invalid
PageTokenvalue to be sent to the Chat API - A variable used to build the request is uninitialized or incorrectly parsed, which results in a negative number
- Update your request so
PageTokenis set to0or a positive integer - Add input validation before sending the request to prevent negative
PageTokenvalues - Review your pagination logic to make sure previous-page calculations never produce a value below
0 - If you are storing pagination state, confirm the value is preserved correctly between requests
- Test the request with a known valid
PageTokenvalue to verify the rest of the request is correct