Closed tambdc-self closed 4 years ago
Be able to require web page (http://www.javlibrary.com/)
write here
get an error
const Humanoid = require("@subns/humanoid-js");
let humanoid = new Humanoid(); humanoid.get("http://www.javlibrary.com/") .then(res => { console.log(res.body) // <!DOCTYPE html>... }) .catch(err => { console.error(err) })
Why are you using hooman with new operator? Hooman is not a constructor. BTW the mentioned site worked fine for me.
new
Describe the bug
Be able to require web page (http://www.javlibrary.com/)
get an error
const Humanoid = require("@subns/humanoid-js");
let humanoid = new Humanoid(); humanoid.get("http://www.javlibrary.com/") .then(res => { console.log(res.body) // <!DOCTYPE html>... }) .catch(err => { console.error(err) })
Checklist