Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CBP update breaking incremental exports #559

Closed
dan-ladd opened this issue Aug 25, 2023 · 4 comments
Closed

CBP update breaking incremental exports #559

dan-ladd opened this issue Aug 25, 2023 · 4 comments

Comments

@dan-ladd
Copy link

2.0.31

Running an incremental test from the documentation
yesterday = datetime.datetime.now() - datetime.timedelta(days=1) result_generator = zenpy_client.tickets.incremental(start_time=yesterday)

TypeError: IncrementalEndpoint.call() got an unexpected keyword argument 'cursor_pagination'

@cryptomail
Copy link
Collaborator

youch, looking into it

@cryptomail
Copy link
Collaborator

workround: without testing, wondering if you can coerce cursor_pagination=false in your invocation.

@cryptomail
Copy link
Collaborator

That should work:

 else:
            if self.supports_cbp() and 'cursor_pagination' not in endpoint_kwargs.keys():
                endpoint_kwargs['cursor_pagination'] = True
            return self._get(
                self._build_url(
                    endpoint=endpoint(*endpoint_args, **endpoint_kwargs)))

@cryptomail
Copy link
Collaborator

@dan-ladd Should be fixed with new revision. Thank you for your report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants