Search code examples
node.jshandler

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.


Solution

  • 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.