Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zhangtianrun opened this issue Apr 17, 2023 · 3 comments
Open

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

zhangtianrun opened this issue Apr 17, 2023 · 3 comments

Comments

@zhangtianrun
Copy link

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?

@koyuncuoglum95
Copy link

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

@abdullahkiani007
Copy link

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.

@Ibrahima-prog
Copy link

Ibrahima-prog commented Jun 15, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants