MongoDB not working with Vercel
Unanswered
Prisum posted this in #help-forum
PrisumOP
I have been working on a AI assistant now for about 2 days. I got user sign up and login working with MongoDB. When I uploaded it to Vercel I got no errors in the console but every time I tried to create or login I got a error. I verified the mongoDB url link many times and it always worked when I built the project and ran
npm start
on my computer. Help would be appreciated. If you want the gitrepo link just ping me because their is sensitive information on the repo like mongodb url and cloudflare api key.Oct 14 14:09:02.19
POST
504
pagnini-ai.vercel.app
/api/signup
[POST] /api/signup status=504
Oct 14 14:08:49.35
GET
405
pagnini-ai.vercel.app
/api/login
[GET] /api/login status=405
Oct 14 14:08:23.85
POST
504
pagnini-ai.vercel.app
/api/signup
[POST] /api/signup status=504
Oct 14 14:08:15.01
POST
504
pagnini-ai.vercel.app
/api/login
[POST] /api/login status=504
Oct 14 14:08:10.72
POST
504
pagnini-ai.vercel.app
/api/login
[POST] /api/login status=504
Oct 14 14:08:10.11
POST
504
pagnini-ai.vercel.app
/api/login
[POST] /api/login status=504
Oct 14 14:08:00.61
GET
401
pagnini-ai.vercel.app
/api/user
[GET] /api/user status=401
Oct 14 14:07:57.26
GET
401
pagnini-np1w9gguv-prisumdevolopes-projects.vercel.app
/api/user
[GET] /api/user status=401
Oct 14 14:07:57.25
GET
401
pagnini-np1w9gguv-prisumdevolopes-projects.vercel.app
/api/user
[GET] /api/user status=401
Oct 14 14:07:56.61
GET
401
pagnini-np1w9gguv-prisumdevolopes-projects.vercel.app
/api/user
[GET] /api/user status=401
Oct 14 14:07:56.53
GET
401
pagnini-np1w9gguv-prisumdevolopes-projects.vercel.app
/api/user
[GET] /api/user status=401
2 Replies
PrisumOP
Fixed
I forgot the mongodb extension 💀