commerce icon indicating copy to clipboard operation
commerce copied to clipboard

Error: {cause: ..., status: 500, message: ..., query: ...}

Open rnative77 opened this issue 8 months ago • 4 comments

Hello, I made the local clone of commerce, but I'm getting this error. Does anyone know where the error is?

Image

rnative77 avatar May 20 '25 14:05 rnative77

are u fix ?

ekko2665 avatar May 23 '25 15:05 ekko2665

I also ran into this problem, if anyone found the solution.

MikelVarvaro avatar May 27 '25 17:05 MikelVarvaro

I feel kinda silly now, but the issues are with misconfigured .env files. I personally when reading the setup guide thought that .env.example was not just a template .env for the project but an actual flag that I didn't know about that the Vercel team had set up specifically for this project.

All in all the solution is just set up the .env file for development and production, and you should be good to go here are the docs from Vercel on Environment Variables

MikelVarvaro avatar May 27 '25 18:05 MikelVarvaro

@rnative77 The issue is due to the missing variables in your local environment file. If you have deployed your project with Vercel, you can usevercel link to link your local project with Vercel and have environment variables pulled to your local by running vercel env pull. You should also be able to manually create a .env.local file by following the .env.example file provided.

DavidCWHung avatar Jun 01 '25 06:06 DavidCWHung