ServerlessWP icon indicating copy to clipboard operation
ServerlessWP copied to clipboard

Getting 500 error when deployed to vercel

Open vasantharaja200295 opened this issue 1 year ago • 2 comments

Hello, I'm facing issues when I try to deploy serverlessWP to vercel, since planetscale has removed the free tier I am trying to use cockroach db for this. the issues im facing are im getting a 500 error when i try to open the preview link from vercel. I have attached the logs of the issue please help me on this.

Thank you.

Logs: logs_result.json

vasantharaja200295 avatar Jul 28 '24 15:07 vasantharaja200295

@vasantharaja200295 have you managed to fix this? I'm encountering the same error

@mitchmac maybe you know?

sleakchat avatar Aug 14 '24 13:08 sleakchat

@vasantharaja200295 have you managed to fix this? I'm encountering the same error

@mitchmac maybe you know?

No man i can't find a way to fix it

vasantharaja200295 avatar Aug 14 '24 13:08 vasantharaja200295

@vasantharaja200295 have you managed to fix this? I'm encountering the same error @mitchmac maybe you know?

No man i can't find a way to fix it

I have a working personal blog, deployed on Vercel. Use Aiven.io for the database, don't forget to set the region close to your vercel region.

awan-gh avatar Sep 11 '24 08:09 awan-gh

I fixed this by using Node.js v18.x instead of the default v20.x and then redeploying.

aldosch avatar Oct 23 '24 02:10 aldosch

Created pull request #73 to solve this

aldosch avatar Oct 29 '24 09:10 aldosch

Thank you @aldosch -- I'll try to find time to update for node 20 compatibility one of these days!

mitchmac avatar Oct 31 '24 01:10 mitchmac