RecursionError: maximum recursion depth exceeded while calling a Python object

When i was trying to use the preview token get entries i recived this error:

with 1826 line length error.

the piece of code which throw the error is:

page = self.preview_client.entries({‘limit’: apiPaginationLimit,
‘skip’: skipPages}).items

apiPaginationLimit = 100
skipPages = 0

some additional useful information:
when i tried the same code with a space contain 657 entries it works just fine, the error was when i tried the code with a space contain 829 entries.

Please, how can i solve this error and fetch all my entries?