salman0ansari / whatsapp-api-nodejs

RESTful WhatsApp API with Multiple Device Support
GNU General Public License v3.0
1.28k stars 610 forks source link

MongoDB error #735

Closed Jobians closed 1 year ago

Jobians commented 1 year ago

myuser@vps:~/whatsapp-api-nodejs/src$ node server {"level":30,"time":1689336751511,"pid":66336,"hostname":"vps","msg":"Listening on port 3333"} {"level":30,"time":1689336751546,"pid":66336,"hostname":"vps","msg":"STATE: Connecting to MongoDB"} {"level":50,"time":1689336781591,"pid":66336,"hostname":"vps","msg":"STATE: Connection to MongoDB failed!"}

sairmali commented 1 year ago

MONGODB_URL=mongodb+srv://username>:<password>@cluster0.sikjaph.mongodb.net/<dbname

add in your env file

Jobians commented 1 year ago

Thanks, it works now the problem is that I didn't set MONGODB_ENABLED to true