{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/17891","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/17891/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/17891/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/17891/events","html_url":"https://github.com/facebook/react-native/issues/17891","id":295083986,"number":17891,"title":"Fetch throws 'Network request failed' on Android SDK Platform 24","user":{"login":"paulus6lau","id":36148646,"avatar_url":"https://avatars0.githubusercontent.com/u/36148646?v=4","gravatar_id":"","url":"https://api.github.com/users/paulus6lau","html_url":"https://github.com/paulus6lau","followers_url":"https://api.github.com/users/paulus6lau/followers","following_url":"https://api.github.com/users/paulus6lau/following{/other_user}","gists_url":"https://api.github.com/users/paulus6lau/gists{/gist_id}","starred_url":"https://api.github.com/users/paulus6lau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulus6lau/subscriptions","organizations_url":"https://api.github.com/users/paulus6lau/orgs","repos_url":"https://api.github.com/users/paulus6lau/repos","events_url":"https://api.github.com/users/paulus6lau/events{/privacy}","received_events_url":"https://api.github.com/users/paulus6lau/received_events","type":"User","site_admin":false},"labels":[{"id":337217254,"url":"https://api.github.com/repos/facebook/react-native/labels/Ran%20Commands","name":"Ran Commands","color":"ffffff","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2018-02-07T10:29:24Z","updated_at":"2018-04-24T15:55:43Z","closed_at":"2018-02-24T03:19:56Z","author_association":"NONE","body":"# Is this a bug report?\r\nYes\r\n\r\n# Have you read the Bugs section of the Contributing to React Native Guide?\r\nYes\r\n\r\n# Environment\r\nreact-native -v: react-native-cli: 2.0.1 react-native: 0.46.3\r\nnode -v: v7.7.3\r\nnpm -v: 4.1.2\r\nyarn --version (if you use Yarn): ---\r\nThen, specify:\r\n\r\nTarget Platform: Android\r\nDevelopment Operating System: macOS Sierra 10.12.5 (16F73)\r\nBuild tools: Android Studio\r\n# Steps to Reproduce\r\nfetch('https://pricesea.ru/api/auth/info', {\r\n      credentials: 'include'\r\n    }).then(res => {\r\n        ...\r\n      }).catch((e) => {\r\n        console.log(e);\r\n      });\r\n# Expected Behavior\r\nRequest should return HTTP code 200 and some data or HTTP code 401.\r\n\r\n# Actual Behavior\r\nI have an error:\r\n\r\nTypeError: Network request failed\r\nat XMLHttpRequest.xhr.onerror (fetch.js:441)\r\nat XMLHttpRequest.dispatchEvent (event-target.js:172)\r\nat XMLHttpRequest.setReadyState (XMLHttpRequest.js:546)\r\nat XMLHttpRequest.__didCompleteResponse (XMLHttpRequest.js:381)\r\nat XMLHttpRequest.js:485\r\nat RCTDeviceEventEmitter.emit (EventEmitter.js:181)\r\nat MessageQueue.__callFunction (MessageQueue.js:260)\r\nat MessageQueue.js:101\r\nat MessageQueue.__guard (MessageQueue.js:228)\r\nat MessageQueue.callFunctionReturnFlushedQueue (MessageQueue.js:100)\r\n# Reproducible Demo\r\nthe bug(https://github.com/facebook/react-native/issues/15100) is reported by @DmitryMaksakov but closed with not-finding root cause.\r\n\r\n(Paste the link to an example project and exact instructions to reproduce the issue.)\r\n\r\nI have tested different API SDK Platform versions (from 22 up to 26), the problem reproduces only on API SDK Platform 24 (Android 7.0).\r\nI also did this request via native Android app and it was successful on all Platform versions, even 24.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/383984931","html_url":"https://github.com/facebook/react-native/issues/17891#issuecomment-383984931","issue_url":"https://api.github.com/repos/facebook/react-native/issues/17891","id":383984931,"user":{"login":"sooxiaotong","id":13378059,"avatar_url":"https://avatars3.githubusercontent.com/u/13378059?v=4","gravatar_id":"","url":"https://api.github.com/users/sooxiaotong","html_url":"https://github.com/sooxiaotong","followers_url":"https://api.github.com/users/sooxiaotong/followers","following_url":"https://api.github.com/users/sooxiaotong/following{/other_user}","gists_url":"https://api.github.com/users/sooxiaotong/gists{/gist_id}","starred_url":"https://api.github.com/users/sooxiaotong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sooxiaotong/subscriptions","organizations_url":"https://api.github.com/users/sooxiaotong/orgs","repos_url":"https://api.github.com/users/sooxiaotong/repos","events_url":"https://api.github.com/users/sooxiaotong/events{/privacy}","received_events_url":"https://api.github.com/users/sooxiaotong/received_events","type":"User","site_admin":false},"created_at":"2018-04-24T15:55:43Z","updated_at":"2018-04-24T15:55:43Z","author_association":"NONE","body":"@havinhthai What can i do next ><\r\n![image](https://user-images.githubusercontent.com/13378059/39198960-f7182218-481a-11e8-947e-21e17b2434dc.png)\r\n"}}
{"actor":{"display_login":"sooxiaotong"}}