klaviyo / klaviyo-api-python

Python SDK for Klaviyo API
https://developers.klaviyo.com
MIT License
36 stars 6 forks source link

"Invalid cursor provided" Error for "get_events()" #9

Closed hhissami closed 1 year ago

hhissami commented 1 year ago

Hi!

Sometimes I get the following error message when calling get_events() with a cursor URL:

Status Code: 400
Reason: Bad Request
...
"status":400,"code":"invalid","title":"Invalid input.","detail":"Invalid cursor provided.","source":{"pointer":"/data/"}}]}

When I input this cursor URL to Postman, I get a normal response.

This error seems to occur more with older data.

Thanks in advance!

jon-batscha commented 1 year ago

Hey! Really appreciate you reaching out. I was able to reproduce your bug, and am working on a fix urgently (this should not be happening). I'll update you on this thread once i have a fix.

jon-batscha commented 1 year ago

Hey! Just shipped a new version, 1.2.1, with the fix.

Apologies for the wait. Mostly though, thank you so much for catching this bug that went unnoticed by many eyes, we super appreciate it.

If you run into any other issues, please do not hesitate to reach out.

Cheers! Jon

hhissami commented 1 year ago

Thanks a lot Jon! 😀