Skip to main content
Solved

Campaign Recipients API is going in infinite loop

  • February 4, 2022
  • 3 replies
  • 147 views

Forum|alt.badge.img+2
  • Contributor I
  • 1 reply

Hi there,

We use this API to fetch the campaign recipients. We use pagination to control the number of records fetched per API call.

In recent times, the API is misbehaving, i.e. it returns the same “next_offset” value as the input. Example:

curl --location --request GET 'https://a.klaviyo.com/api/v1/campaign/WihTjL/recipients?api_key=pk_***&offset=bWFkaHVyaS5oYUBoZXZvZGF0YS5jb20=&count=3&sort=asc'

And in the response it returns next_offsetbWFkaHVyaS5oYUBoZXZvZGF0YS5jb20= again. Thus, creating an infinite call sequence.

Can you please have a look and let me know the resolution?

 

PS: There are more than 3 recipients to this campaign, so I don’t think I can treat the offset being same as next_offset as a termination criteria.

Best answer by Dov

Hi @dev_h,

This issue should now be resolved.

Thank you for your patience.

 

View original
Did this topic or the replies in the thread help you find an answer to your question?

3 replies

Dov
Forum|alt.badge.img+61
  • Klaviyo Alum
  • 1493 replies
  • February 4, 2022

Hi @dev_h,

Thanks for sharing this with us.

This appears to be a bug and I’ve filed a report for our team to investigate. A member of our team will reach out as soon as we have resolved the issue. Thank you for your understanding.


Forum|alt.badge.img+2
  • Author
  • Contributor I
  • 1 reply
  • February 4, 2022

Thank you @Dov 

Looking forward to it.


Dov
Forum|alt.badge.img+61
  • Klaviyo Alum
  • 1493 replies
  • Answer
  • February 7, 2022

Hi @dev_h,

This issue should now be resolved.

Thank you for your patience.