i hope you can help me guys thankyou.enter image description here推荐答案我看到您的 fetch URL 是使用HTTP端点提供的.您只能从本机项目向HTTPS端点发出请求.I see that your fetch URL is served using an HTTP endpoint. You can only make requests to HTTPS endpoints from react-native projects.可能的解决方法是使用ngrok.只需下载并运行:A possible workaround is to use ngrok. Just download it and run:./ngrok http 8000因为您的端口号是8000.它将公开一个HTTPS终结点,并用该链接替换您的 fetch URL ,然后尝试再次获取数据Since your port number is 8000. It will expose an HTTPS endpoint and replace your fetch URL with that link and try fetching the data again 这篇关于网络请求无法响应本机博览会的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
07-24 13:15