Search code examples
node.jsmongodbexpressinsomnia

Why am I getting this error in Nodejs? Error: Couldn't resolve host name


While testing registration API by Insomnia I am getting this error in insomnia preview: Couldn't resolve host name. I am using mongodb database which had been connected with my application. Image of Insomnia error

Why am I getting this error while everything seems okay?


Solution

  • Please check your POST URL. You have typed http//: two times.