lastorel / pytion

Unofficial Python client for official Notion API
GNU General Public License v3.0
44 stars 3 forks source link

query failed validation: query.start_cursor should be a valid uuid or `undefined` #7

Closed lastorel closed 2 years ago

lastorel commented 2 years ago

A pagination loop has occurred due to improper recursion when there is more than 1 pagination. Need to add safe variable to check before execute paginate method. Or to remove pagination method.

pytion.query.RequestError: The request failed with code 400 Bad Request: {'object': 'error', 'status': 400, 'code': 'validation_error', 'message': 'query failed validation: query.start_cursor should be a valid uuid or `undefined`, instead was `"hiddenUUID?start_cursor=45bb...`.'}