Skip to main content
Solved

Error Code 414 - Request-URI Too Large

  • April 23, 2024
  • 5 replies
  • 115 views

Forum|alt.badge.img+3

Hi,

I am trying to fetch all the profiles of the account using API in python.

I am trying with 100 pages at a time. After a certain point, specifically after 226 calls, I am getting this error:
status_code is 414 with message : Request-URI Too Large

Can someone help me out here?

I am using the following endpoint:

https://a.klaviyo.com/api/profiles/

from the link (https://developers.klaviyo.com/en/reference/get_profiles)

Best answer by Brian Turcotte

Hi @jayadheer_a!
 

We checked on the backend and did not see any 414's at all in our logs, which may mean this is happening before it even reaches Klaviyo.

Would you be able to log the full url+query string that you are trying to send when they get the 414 (with any sensitive information redacted)? This would look like /api/profiles?filter=xyz&page[cursor]=xyz. The limit is around 2000 characters, so I would expect it to be longer than that if you’re receiving the error.

Best,

Brian

5 replies

Brian Turcotte
Forum|alt.badge.img+37
  • Klaviyo Alum
  • 1393 replies
  • April 24, 2024

Hi @jayadheer_a!

I’ll check on this and update the thread ASAP!

- Brian


Brian Turcotte
Forum|alt.badge.img+37
  • Klaviyo Alum
  • 1393 replies
  • April 30, 2024

Hi @jayadheer_a!

My apologies for the delay here! Is this still occurring for you?
 

- Brian


Forum|alt.badge.img+3
  • Author
  • Contributor III
  • 6 replies
  • May 3, 2024

Hi @Brian Turcotte,

 

No, it is not resolved yet.

Can you please help?

 

Regards,

Jayadheer A


Forum|alt.badge.img+3
  • Author
  • Contributor III
  • 6 replies
  • May 22, 2024

Hi @Brian Turcotte,

 

No, it is not resolved yet.

Can you please help?

 

Regards,

Jayadheer A


Brian Turcotte
Forum|alt.badge.img+37
  • Klaviyo Alum
  • 1393 replies
  • Answer
  • June 14, 2024

Hi @jayadheer_a!
 

We checked on the backend and did not see any 414's at all in our logs, which may mean this is happening before it even reaches Klaviyo.

Would you be able to log the full url+query string that you are trying to send when they get the 414 (with any sensitive information redacted)? This would look like /api/profiles?filter=xyz&page[cursor]=xyz. The limit is around 2000 characters, so I would expect it to be longer than that if you’re receiving the error.

Best,

Brian