Skip to main content
Solved

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


Forum|alt.badge.img+2

 

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

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

3 replies

Brian Turcotte
Forum|alt.badge.img+37
  • Klaviyo Alum
  • 1393 replies
  • Answer
  • 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


Forum|alt.badge.img+2
  • Author
  • Contributor I
  • 1 reply
  • January 10, 2024

I checked my code its a server side page 


Brian Turcotte
Forum|alt.badge.img+37

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