Next.js Discord

Discord Forum

Vercel error connect ECONNREFUSED 127.0.0.1:3000

Answered
Николя posted this in #help-forum
Open in Discord
I'm trying to install my project on vercel, but there's this problem, what's causing this? I seem to have changed everything from local
Answered by joulev
seems like you are fetching your own route handlers. something like fetch("http://localhost:3000") or fetch("http://127.0.0.1:3000"). [don't do that](https://nextjs-faq.com/fetch-api-in-rsc)
View full answer

10 Replies

Madeiran sardinella
It looks like you're not hitting the db host
@Madeiran sardinella It looks like you're not hitting the db host
Please, I have a database on google cloud, and everything works locally
And it`s 127.0.0.1:3000 my local host, i don't I don't understand what he has to do with it
Madeiran sardinella
Your app is on vercel and your db in gcp, right?
Show me your db config
Answer
For example
Oh, i fix it:blob_aww: