project_mern_memories icon indicating copy to clipboard operation
project_mern_memories copied to clipboard

Don't know how to run code on localhost:5000/posts

Open zhangtianrun opened this issue 1 year ago • 3 comments

I was practicing with the youtube video of the creation of this repository. https://www.youtube.com/watch?v=ngc9gnGgUdA&list=PL6QREj8te1P7VSwhrMf3D3Xt4V6_SRkhu&index=2 At 18:23 of the video, where you went to localhost:5000/posts on google, it popped up 'this works!' I followed along with your guide but my browser says this:

This site can’t provide a secure connection localhost sent an invalid response. ERR_SSL_PROTOCOL_ERROR

I don't understand what went wrong. Could someone explain this to me?

zhangtianrun avatar Apr 17 '23 00:04 zhangtianrun

Hi @zhangtianrun, I think you have an incorrect SSL Certificate Key or using wrong port. So, I found a solution from this youtube links.

https://www.youtube.com/watch?v=gsdORvN7yaE https://www.youtube.com/watch?v=Jv48sQMotrE

koyuncuoglum95 avatar May 13 '23 06:05 koyuncuoglum95

If you are working on a local development environment, you can try accessing the URL using plain HTTP instead of HTTPS. Simply enter "http://localhost:5000/posts" in your browser's address bar, and it should bypass the SSL error.

abdullahkiani007 avatar Jun 01 '23 12:06 abdullahkiani007

for my ssl error i downgraded node to the version 14 like the one in the video and it solved my issue make sure you have nvm installed of course. nvm install 14 nvm use 14

Ibrahima-prog avatar Jun 15 '23 23:06 Ibrahima-prog