我在AWS EC2上运行后端服务器,当我尝试通过提取发出请求时,它只是说网络请求失败。今晚我尝试了十亿次尝试,我什至买了一个域名并设置了ssl,因为此处的其他问题指出这是问题,但是没有解决。提取在本地完全可以正常工作,但指向我在AWS上的服务器却不能。如果我记录该URL,我将要获取该URL并将其粘贴到我的浏览器中,它将正常工作。
Network request failed
- node_modules\whatwg-fetch\dist\fetch.umd.js:474:29 in xhr.onerror
- node_modules\event-target-shim\dist\event-target-shim.js:818:39 in EventTarget.prototype.dispatchEvent
- node_modules\react-native\Libraries\Network\XMLHttpRequest.js:574:29 in setReadyState
- node_modules\react-native\Libraries\Network\XMLHttpRequest.js:388:25 in __didCompleteResponse
- node_modules\react-native\Libraries\vendor\emitter\EventEmitter.js:190:12 in emit
- node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:436:47 in __callFunction
- node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:111:26 in __guard$argument_0
- node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:384:10 in __guard
- node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:110:17 in __guard$argument_0
* [native code]:null in callFunctionReturnFlushedQueue
fetch.umd.js:474:29中的错误是: Event { "isTrusted": false, }
我的问题与SSL有关。只是使用nginx设置不正确
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句