Hi all,
I’m using the native Python library with the get_tasks_for_project function. I’m getting a 400 error that my pagination token is invalid for the offset, but the error is arriving on the first call when I don’t have an offset token yet. I’ve tried initializing the offset variable as both None and “” to no avail.
here is a snippet of my code:
tasks = []
project_id = 'xxxxxx'
offset = None
opts = {'limit': 100, 'offset': offset, 'opt_fields': 'gid'}
try:
# Get tasks from a project
response = tasks_api_instance.get_tasks_for_project(project_id, opts)
for data in response:
print(data)
except ApiException as e:
print("Exception when calling TasksApi->get_tasks_for_project: %s\n" % e)