Richienb / url-exist-sync

Synchronously check if a URL exists.
MIT License
1 stars 1 forks source link

Returns false for accessible urls when run in VPN environment #4

Open rthangam opened 3 years ago

rthangam commented 3 years ago

I am running the command behind VPN. Node js has the required proxy settings for http and https but still even Google url fails:

const urlExistSync = require("url-exist-sync"); undefined urlExistSync("https://google.com"); false

What could be the issue here ?

Richienb commented 3 years ago

Did you try adding the protocol infront of google.com?

const urlExistSync = require("url-exist-sync")

urlExistSync("https://google.com")
//=> true
rthangam commented 3 years ago

Within VPN

const urlExistSync = require("url-exist-sync") urlExistSync("https://google.com") false

Outside VPN

const urlExistSync = require("url-exist-sync") undefined urlExistSync("https://google.com") true

Google
Celebrating Masako Katsura! #GoogleDoodle