Skip to main content
Contributor III
April 23, 2024
Solved

Error Code 414 - Request-URI Too Large

  • April 23, 2024
  • 5 replies
  • 162 views

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)

    This topic has been closed for replies.
    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
    Klaviyo Alum
    April 24, 2024

    Hi @jayadheer_a!

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

    - Brian

    Brian Turcotte
    Klaviyo Alum
    April 30, 2024

    Hi @jayadheer_a!

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

    - Brian

    Contributor III
    May 3, 2024

    Hi @Brian Turcotte,

     

    No, it is not resolved yet.

    Can you please help?

     

    Regards,

    Jayadheer A

    Contributor III
    May 22, 2024

    Hi @Brian Turcotte,

     

    No, it is not resolved yet.

    Can you please help?

     

    Regards,

    Jayadheer A

    Brian Turcotte
    Klaviyo Alum
    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