project_mern_memories
project_mern_memories copied to clipboard
Don't know how to run code on localhost:5000/posts
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?
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
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.
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