Answer the question
In order to leave comments, you need to log in
404 error on request?
Hello. I am making a request to check google captcha.
const requestVerif = ()=>{
https.get(verifUrl, (resp) => {
let data = '';
resp.on('data', (chunk) => {
data += chunk;
});
resp.on('end', () => {
console.log(data);
});
}).on("error", (err) => {
console.log("Error: " + err.message);
});
};
requestVerif();
<HTML>
<HEAD>
<TITLE>Not Found</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Not Found</H1>
<H2>Error 404</H2>
</BODY>
</HTML>
Answer the question
In order to leave comments, you need to log in
If https is a built-in node module, then you access your host + the URL that you specified, respectively, it will return 404, because you do not have such a route. If you need to fetch this URL, you can put the fetch package for the node or axios, for example
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question