-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Form is not posting. #1
Comments
Hey @yilmazbingo, |
Error occursTypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined. Plz help const express = require("express"); const nodemailer = require('nodemailer'); router.get("/mail", (req, res) => { // Step 1 // Step 2 // Step 3 // Step 4 }); module.exports = router; |
I even copied and pasted exact code but I get same error:
jquery-3.3.1.min.js:2 POST http://localhost:3000/email 404 (Not Found)
Since I log the ajax requests on console, I also get this:
jquery-3.3.1.min.js:2 XHR failed loading: POST
I tested jquery with different commands and jquery is working fine.
I thought issue might be because of parsing data, so I installed body-parser module didnt help.
Since I saw the ajax error, I was suspecting cross origin policy error. So I added some code to circumvent cross origin policy, I got this error:
:3000/email:1 Failed to load resource: the server responded with a status of 404 (Not Found)
The text was updated successfully, but these errors were encountered: