Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is this "scheme don't have a registered handler" error?

I am working on a node app. i have an ejs file , where on clicking a button a get request is made to this url localhost:3000/posts/business-economics but the page doesn't load up and this error is shown in the console

Failed to launch 'localhost:3000/posts/business-economics' because the scheme does not have a registered handler.

like image 313
Ritish Gupta Avatar asked Nov 12 '20 04:11

Ritish Gupta


2 Answers

I encountered the same error while working with the localhost. I was trying to redirect to localhost:3000 and I got this error flashing on my console. It turns out that it's because the http:// is missing from the url you're trying to load. I'm amazed to see that no one has answered this yet.

like image 110
Daman Arora Avatar answered Nov 15 '22 10:11

Daman Arora


you must set address protocol before url ,like:

returnUrl = window.location.protocol + "//" + window.location.host + Path
like image 15
Hosein Mohazebi Avatar answered Nov 15 '22 11:11

Hosein Mohazebi