Skip to main content
Contributor I
January 4, 2024
Solved

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

  • January 4, 2024
  • 3 replies
  • 370 views

 

    This topic has been closed for replies.
    Best answer by Brian Turcotte

    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
    January 4, 2024

    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
    January 10, 2024

    I checked my code its a server side page 

    Brian Turcotte
    Klaviyo Alum
    January 23, 2024

    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