jhen0409 / react-native-debugger

The standalone app based on official debugger of React Native, and includes React Inspector / Redux DevTools
MIT License
10.36k stars 809 forks source link

React native debugger gives error ERR_SSL_PROTOCOL_ERROR. #725

Open gmavritsakis opened 1 year ago

gmavritsakis commented 1 year ago

React Native Debugger app version: [0.13.0] React Native version: [0.69.2] Platform: [FILL THIS OUT: Android] Is real device of platform: [No] Operating System: [Windows]

React native debugger gives error ERR_SSL_PROTOCOL_ERROR.

React native debugger won't connect with metro again after having some erratic setup on a web server in my machine serving localhost where I have mistakenly set up HSTS. I have removed the site from chrome and edge HSTS lists and I have run a local site without HSTS so as to clear that out, but still. When I run a local site on port 8081 the debugger says ERR_CONNECTION_RESET which is ok. As soon as I run the metro metro bundler is starts giving errors ERR_SSL_PROTOCOL_ERROR.

Does anyone know how I could reset that? (Reinstalling RND didn't helped either).

gianlucalippolis commented 1 year ago

I think this depends on your version of npm, you might try 16. I also had this problem on a project, I can still conveniently switch the version of npm using nvm before doing npm start.