error:
Unhandled promise rejection Error: "Network Error" 
my front-end vue application is running in http://localhost:8080 and backend is running in in http://localhost:8082
I'm requesting get request from axios from vue file to the backend.
onSubmit(){
        return axios.get(`http://192.168.43.35:8082/auth/$(this.email)-$(this.password)`).then(function(response){console.log(response)}).catch(function(error){
            throw error;
            console.log(error);
        });
and here is my endpoint
app.get('/auth/:email-:password',cors(),(req,res)=>{
  MongoClient.connect(url, function(err, db) {
  if (err) console.log(err);
  var dbo = db.db("leaveautomation");
  dbo.collection("letters").find({email:req.params.email, password:req.params.password},{ projection: { _id: 0, email: 1,} }).toArray(function(err, result) {
  if (err) console.log(err);
  res.send({
    email: result,
    length: result.length
  });
  db.close();
});
  });})
what could be the reason for this error!?
 
    