Skip to main content
Active Contributor I
September 15, 2023
Solved

Klaviyo GET-Campaigns API failing when paginating

  • September 15, 2023
  • 12 replies
  • 410 views

Klaviyo Get Campaigns API failure.

 

I am using the `2023-08-15` of Klaviyo API to get all the campaigns. 

(https://developers.klaviyo.com/en/reference/get_campaigns)

 

I am making paginated requests, using the “next” url in the “links” object. 

At one point, the API is failing with `400` status code & returns

{'errors': [{'id': 'a7fdaa68-1add-4536-91ff-63096728544a',
'status': 400,
'code': 'invalid',
'title': 'Invalid input.',
'detail': "'NoneType' object has no attribute 'tzinfo'",
'source': {'pointer': 'options_static'},
'meta': {}}]
}

 

I am able to get all the campaigns using the deprecated `v1-2` API, so the API keys is fine. 

(https://developers.klaviyo.com/en/v1-2/reference/get-campaigns)

 

This topic has been closed for replies.
Best answer by Kim Strauch

Hey @Eugene K , I checked in with the team and the issue should be fixed on your end. Can you please give it a go and confirm it’s working for you? 

12 replies

Kim Strauch
Klaviyo Employee
Klaviyo Employee
January 17, 2024

Hey @Eugene K , I checked in with the team and the issue should be fixed on your end. Can you please give it a go and confirm it’s working for you? 

Contributor I
January 24, 2024

Hi @Kim Strauch, confirming that issue is fixed.

Thanks!