Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with the api/user #141

Open
Vinzouz opened this issue Feb 2, 2022 · 1 comment
Open

Problem with the api/user #141

Vinzouz opened this issue Feb 2, 2022 · 1 comment

Comments

@Vinzouz
Copy link

Vinzouz commented Feb 2, 2022

Hi, I'm creating my Nextjs application which uses MongoDB Atlas, your project helped me a lot to understand how everything works so already thanks a lot!

Everything works perfectly locally and on Vercel but when I try to put it online on a server (cPanel) I always get this error from the api/user: "connect ECONNREFUSED 3.67.190.44:27017".
And this in the logs: "at Timeout._onTimeout (/home/.../14/lib/node_modules/mongodb/lib/sdam/topology.js:312:38)".
I've been searching a lot for the past few days but I have no idea where this is coming from.

Do you have any idea?
Thanks in advance.

@hoangvvo
Copy link
Owner

hoangvvo commented Feb 7, 2022

It appears that the API cannot connect to your MongoDB database. Make sure the database is set up correctly and open to access from outside.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants