Postman show up infinite “Sending request…” on my nodeJS MongoDB application

this is my entire code of my chatbot application

const express = require('express');
const app = express();
const MongoClient = require('mongodb').MongoClient;
const assert = require('assert');
const bodyParser = require('body-parser'); 
const dbName = "chatbotdb";

const jsonParser = bodyParser.json();
const urlencodedParser = bodyParser.urlencoded({extended: false});

app.use(jsonParser);
app.use(urlencodedParser);

const MongoConnection = (callback) =>{

    //creating connection to MongoDB database with connect() method which returns a promise
    MongoClient.connect('mongodb://localhost:27017/chatbotdb') //pass the DB along with connection-URL
    .then(client=>{
        console.log("Connected");
        db = client.db();  //fetch DB
        callback();
     })
    .catch(err=>{
        console.log(err);
     });
}



app.post('/insert', urlencodedParser, function(req, res){
    let objJson = {};
    if(req.body.code_user) objJson.code_user = req.body.code_user; else objJson.code_user = 0;
    if(req.body.code_session) objJson.code_session = req.body.code_session; else objJson.code_session = 0;
    if(req.body.code_current) objJson.code_current = req.body.code_current; else objJson.code_current = cod();
    if(req.body.code_relation) objJson.code_relation = req.body.code_relation; else objJson.code_relation = 0;
    if(req.body.code_before) objJson.code_before = req.body.code_before; else objJson.code_before = 0;
    if(req.body.input) objJson.input = req.body.input; else objJson.input = '';
    if(req.body.output) objJson.output = req.body.output; else objJson.output ='Desculpe, mas não entendi';

    insertData(objJson, function(result){
        res.send(result);
    })
});

function cod(){
    const data = new Date();
    const ano = data.getFullYear();
    const mes = data.getMonth();
    const dia = data.getDate();
    const hora = data.getHours();
    const minuto = data.getMinutes();
    const segundo = data.getSeconds();
    const milisegundos = data.getMilliseconds();
    const result = parseInt(Number(ano+''+mes+''+dia+''+hora+''+minuto+''+segundo+''+milisegundos)/2);
    return result;
}

app.post('/update', urlencodedParser, function(req, res){
    let objJson = {};
    if(req.body.code_user) objJson.code_user = req.body.code_user;
    if(req.body.code_session) objJson.code_session = req.body.code_session; 
    if(req.body.code_current) objJson.code_current = req.body.code_current;
    if(req.body.code_relation) objJson.code_relation = req.body.code_relation;
    if(req.body.code_before) objJson.code_before = req.body.code_before; 
    if(req.body.input) objJson.input = req.body.input; 
    if(req.body.output) objJson.output = req.body.output; 

    updateData(objJson, function(result){
        res.send(result);
    })
});

app.post('/delete', urlencodedParser, function(req, res){
    let objJson = {};
    if(req.body.code_user) objJson.code_user = req.body.code_user; 
    if(req.body.code_session) objJson.code_session = req.body.code_session; 
    if(req.body.code_current) objJson.code_current = req.body.code_current;
    if(req.body.code_relation) objJson.code_relation = req.body.code_relation;
    if(req.body.code_before) objJson.code_before = req.body.code_before; 
    if(req.body.input) objJson.input = req.body.input; 
    if(req.body.output) objJson.output = req.body.output; 

    deleteData(objJson, function(result){
        res.send(result);
    });
    });

    app.post('/find', urlencodedParser, function(req, res){
        let objJson = {};
        if(req.body.code_user) objJson.code_user = req.body.code_user; 
        if(req.body.code_session) objJson.code_session = req.body.code_session; 
        if(req.body.code_current) objJson.code_current = req.body.code_current;
        if(req.body.code_relation) objJson.code_relation = req.body.code_relation; 
        if(req.body.code_before) objJson.code_before = req.body.code_before; 
        if(req.body.input) objJson.input = req.body.input; 
        if(req.body.output) objJson.output = req.body.output; 
    
        findData(objJson, function(result){
            res.send(result);
        });
        });

const insertData = function(objJson, callback){
    const collection = db.collection('chatbot');
    collection.insertOne(objJson, function(err, result){
        assert.equal(null,err);
        callback(result);
    });
}

const updateData = function(objJson, callback){
    const collection = db.collection('chatbot');
    const code_current = objJson.code_current;
    collection.updateOne({code_current: code_current}, {$set: objJson} , function(err, result){
        assert.equal(null,err);
        callback(result);
    });
}

const deleteData = function(objJson, callback){
    const collection = db.collection('chatbot');
    collection.deleteOne(objJson,  function(err, result){
        assert.equal(null,err);
        callback(result);
    });
}


const findData = function(objJson, callback){
    const collection = db.collection('chatbot');
    collection.find(objJson).toArray(function(err, result){
        assert.equal(null,err);
        callback(result);
    });
}

MongoConnection(()=>{

    app.listen(3000, () => {
        console.log(`Database running & Listening on port: 3000`);
    })

})

app.get('/question', urlencodedParser, function(req, res){
    let objJson = {};
    if(req.query.code_user) objJson.code_user = Number(req.query.code_user); else objJson.code_user = 0;
    if(req.query.code_session) objJson.code_session = Number(req.query.code_session); else objJson.code_session = 0;
    if(req.query.code_before) objJson.code_before = Number(req.query.code_before); else objJson.code_before = 0;
    if(req.query.input) objJson.input = req.query.input; else objJson.input = '';

    questionData(objJson, function(result){
        res.send(result);
    });
});

const questionData = function(objJson, callback){
    const collection = db.collection('chatbot');
    collection.find(objJson).toArray(function(err, result){
        assert.equal(null,err);
        if(result.length<=0){
            collection.find({code_user:objJson.code_user}).toArray(function(err, result){
                assert.equal(null,err);
                result = nlp(objJson.input, result);
                callback(result);
            });
         } else callback(result);
        
    });
}

const nlp = function(question, array){
    let originalQuestion = question.toString().trim();
    let findInput = 0;
    let findIndex = 0;
    for(let i=0; i<array.length; i++){
        question = question.toString().trim();
        let input = array[i].input.toString().trim()
        if(input.length<=0) input = array[i].output.toString.trim();
        question = question.normalize('NFD').replace(/[u0300-u036f]/g,'').toLowerCase();
        input = input.normalize('NFD').replace(/[u0300-u036f]/g, '').toLowerCase();
        question = question.replace(/[^a-zA-Z0-9s]/g, '');
        input = input.replace(/[^a-zA-Z0-9s]/g);

        let tokenizationQuestion = question.split(' ');
        let tokenizationInput = input.split(' ');

        tokenizationQuestion = tokenizationQuestion.map(function(e){
            if(e.length>3) return e.substr(0, e.length-3); else return e;
        });
        tokenizationInput = tokenizationInput.map(function(e){
            if(e.length>3) return e.substr(0, e.length-3); else return e;
        });
        let words = 0;
        for(let x=0; x<tokenizationQuestion.length; x++){
            if(tokenizationInput.indexOf(tokenizationQuestion[x])>=0) words++;
        }
        if(words>findInput){
            findInput = words;
            findIndex = i;
        }
        }
        if(findInput>0) return[{
            "_id": array[findIndex]._id,
            "code_user":array[findIndex].code_user,
            "code_session": array[findIndex].code_session,
            "code_current": array[findIndex].code_current,
            "code_relation": array[findIndex].code_relation,
            "code_before": array[findIndex].code_before,
            "input": originalQuestion,
            "output": array[findIndex].output
        }];
        else return [{
            "_id": "0",
            "code_user":array[findIndex].code_user,
            "code_session": array[findIndex].code_session,
            "code_current": array[findIndex].code_current,
            "code_relation": array[findIndex].code_relation,
            "code_before": array[findIndex].code_before,
            "input": originalQuestion,
            "output": "Desculpe, mas não sei responder."
        }];
}

When i use postman to send my post and get requests, the crud works well and the collection is actually updated, deleted or inserted, but postman never sends me the response of my local server, it always sit infinitely on the message “Sending request…” and because of that, i cannot use my ‘/find’ or my get method to search for specific items

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật