Sir, I am trying to create a student record system which uses SQL as database but I am not able to add data to the database using a post request.
Code Link : https://github.com/shubham-joshi1999/Student-Record-System
Pls, look into student.js in routes folder and script.js in public folder.
Post Request in Nodejs
Actually, the post request keeps on loading (when I send it using postman) and I get no response back.
It might be because you are just adding it to database and not sending any response back, send the response back using res.send and see if the error still exists.
I got my mistake, thanks