Skip to main content
Contributor I
Jan 4, 2024 12:23 PM UTC
Solved

I want to integrate klvaiyo with my nextjs payloadCMS. And im getting this error

 

    This topic has been closed for replies.
    Brian Turcotte
    Klaviyo Alum
    Jan 4, 2024 8:08 PM UTC

    Hi @barryanil!

    It appears that you’re calling the Profiles endpoint from a browser/client (correct me if I’m wrong), but that endpoint is a server-side-only endpoint.

     

    Best,

    Brian

    3 replies

    Brian Turcotte
    Klaviyo Alum
    Jan 4, 2024 8:08 PM UTC

    Hi @barryanil!

    It appears that you’re calling the Profiles endpoint from a browser/client (correct me if I’m wrong), but that endpoint is a server-side-only endpoint.

     

    Best,

    Brian

    barryanilAuthor
    Contributor I
    Jan 10, 2024 11:13 AM UTC

    I checked my code its a server side page 

    Brian Turcotte
    Klaviyo Alum
    Jan 23, 2024 6:42 PM UTC

    Hi @barryanil!

     

    Even if it’s a server-side page on your end, if you’re calling the endpoint through a browser client, the same error will occur.

     

    Best,

    Brian