名称 | 版本 | icon |
---|---|---|
React native debugger | V0.10 | ![]() |
React devTools | latest | ![]() |
Expo | ~37.0.3 => 37.0.8 | ![]() |
WebSocket connection to ‘ws://localhost:19002/debugger-proxy?role=debugger&name=Chrome‘ failed: Error during WebSocket handshake: Unexpected response code: 400
接照本次的错误,是因为React native debugger无法成功访问ws://localhost:19002。
而很多开发将它定义为 WebSocket 的问题或是代理的问题。
答案连接了错误的端口导致。(但是如果并非这个问题,解决方案建议 expo diagnostics 诊断环境并重新安装来测试错误的重现。 )
有些问题可能很小,但它就是欺负末懂者,它会纠缠很久。
原文:https://www.cnblogs.com/q1104460935/p/12939333.html