{"id":745,"hash":"c233446e2580e59ce37b3d3b90170536d99b87339cca1e5fefeb9af758fb51fd","pattern":"React Native fetch() Network Request Failed","full_message":"When I create a brand new project using react-native init (RN version 0.29.1) and put a fetch in the render method to the public facebook demo movie API, it throws a Network Request Failed. There is a very useless stack trace and I can't debug network requests in the chrome console. Here is the fetch I'm sending:\n\nfetch('http://facebook.github.io/react-native/movies.json')\n      .then((response) => response.json())\n      .then((responseJson) => {\n        return responseJson.movies;\n      })\n      .catch((error) => {\n        console.error(error);\n      });","ecosystem":"npm","package_name":"react-native","package_version":null,"solution":"The problem here is that iOS does not allow HTTP requests by default, only HTTPS. If you want to enable HTTP requests add this to your info.plist:\n\n<key>NSAppTransportSecurity</key>\n<dict>\n    <key>NSAllowsArbitraryLoads</key>\n    <true/>\n</dict>","confidence":0.95,"source":"stackoverflow","source_url":"https://stackoverflow.com/questions/38418998/react-native-fetch-network-request-failed","votes":242,"created_at":"2026-04-19T04:51:34.618795+00:00","updated_at":"2026-04-19T04:51:34.618795+00:00"}