skip to Main Content

"getaddrinfo ENOTFOUND Database" when try to connect with Database from TypeORM CLI while basically connection is fine – Docker

Relevant part of the docker-compose.yaml: version: "3.5" services: Database: image: postgres container_name: Example-Local-Database ports: - "${DATABASE_PORT}:${DATABASE_PORT}" environment: - "POSTGRES_PASSWORD=${DATABASE_PASSWORD}" volumes: - DatabaseData:/var/lib/postgresql/data # ... volumes: DatabaseData: name: Example-Local-DatabaseData driver: local ENV variables (calm down, no sensitive information to steal, just…

VIEW QUESTION

Mongodb – mongoose code showing error of a call ack function

app.post ('/create_contact',function(req,res) { contact.create({ name :req.body.name, phone:req.body.phone },function(err,newContact) { if(err){console.log('error in creating a contact!'); return;} console.log('********',newContact); return res.redirect('back'); }); }); Errors: throw new MongooseError('Model.create() no longer accepts a callback'); ^ MongooseError: Model.create() no longer accepts a callback I tried this…

VIEW QUESTION
Back To Top
Search