#Self hosted CPK | Cloudflare, pino logger error in prod

1 messages · Page 1 of 1 (latest)

sterile nest
#

Hello,
Thank you for a great tool like CPK, I love it. I have recently integrated it into my app that is Next js and Cloudflare based. I have added copilot chat to a page, this is working fine on my local app but after deploying it to cloudflare and visiting the same page on prod then the chat doesnt work and throws 500 server error. Here is the error I got from Cloudflare logs

⨯ Error: pino – redact paths array contains an invalid path (pid)

Any help would be appreciated, thank you

#

CPK packages version

jolly copperBOT
#

@sterile nest  I’m passing it along to the right person on our team — they’ll take a look and get back to you soon.

dapper kite
#

Hey @sterile nest , looking at this I'm not confident CopilotKit is doing anything here.

It is possible that there's some incorrect setup in how you've configuring the Pino variable. NextJS is serverless for the backend, so it is possible that when you intatiate the pino logger something whacky is going on there.

I'm not so familiar with Pino but if you could share some code perhaps we could help you here.

sterile nest
#

Hello Tyler, Thanks for the reply. Im not using pino logger in my code at all, I thought CPK is using pino for logging things on your end.