Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[iOS 0.29.0]TypeError: Network request failed #8735

Closed
liuhong1happy opened this issue Jul 13, 2016 · 11 comments
Closed

[iOS 0.29.0]TypeError: Network request failed #8735

liuhong1happy opened this issue Jul 13, 2016 · 11 comments
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.

Comments

@liuhong1happy
Copy link

TypeError: Network request failed
    at XMLHttpRequest.xhr.onerror (http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:24437:8)
    at XMLHttpRequest.dispatchEvent (http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:9960:15)
    at XMLHttpRequest.setReadyState (http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:25890:6)
    at XMLHttpRequest.__didCompleteResponse (http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:25748:6)
    at http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:25823:52
    at RCTDeviceEventEmitter.emit (http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:9191:23)
    at MessageQueue.__callFunction (http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:7279:23)
    at http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:7183:8
    at guard (http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:7131:1)
    at MessageQueue.callFunctionReturnFlushedQueue (http://localhost:8081/index.ios.bundle?platform=ios&dev=true&minify=false:7182:1)

Please tell me ! What can I do something to solve the problem ?

@liuhong1happy liuhong1happy changed the title [0.29.0]TypeError: Network request failed [iOS 0.29.0]TypeError: Network request failed Jul 13, 2016
@ksarna
Copy link

ksarna commented Jul 13, 2016

Had same problem, solved by adding

<key>NSAppTransportSecurity</key>
<dict>
  <key>NSAllowsArbitraryLoads</key>
  <true/>
</dict>

to Info.plist

@wty1990000
Copy link

@ksarna This is exactly the solution. Thanks a lot.

@swaroopa94
Copy link

@ksarna But it did not work for me..
How can i solve..?

@walter0331
Copy link

didn't work for me too :(

react-native 0.30.0
node v6.3.1

@grabbou
Copy link
Contributor

grabbou commented Jul 29, 2016

@facebook-github-bot stack-overflow

@ghost
Copy link

ghost commented Jul 29, 2016

Hey @liuhong1happy and thanks for posting this! @grabbou tells me this issue looks like a question that would be best asked on StackOverflow. StackOverflow is amazing for Q&A: it has a reputation system, voting, the ability to mark a question as answered. Because of the reputation system it is likely the community will see and answer your question there. This also helps us use the GitHub bug tracker for bugs only. Will close this as this is really a question that should be asked on SO.

@ghost ghost added the For Stack Overflow label Jul 29, 2016
@ghost ghost closed this as completed Jul 29, 2016
@ghost ghost added the Ran Commands One of our bots successfully processed a command. label Jul 29, 2016
@TheoGit
Copy link

TheoGit commented Aug 4, 2016

@ksarna - not working for me either (and I don't see the Stack Overflow thread) is it possible to see a screen shot of your info.plist file? When I edit my info.plist file in raw xml then I can't open in xcode - btw I'm using xcode 7.3, most of the suggestions appear to be a different version

@anandbhardwaj
Copy link

Please someone help me on this issue. I am stuck with the network error. Can' do anything. I have also set the "Allows Arbitrary Loads" to YES.

@TheoGit
Copy link

TheoGit commented Aug 6, 2016

I fixed it by changing those settings via the XCode UI - it didn't work when I changed directly in the plist file

@delef
Copy link

delef commented Aug 22, 2016

One bad news for developers using NSAppTransportSecurity. 😔

UPDATE:
[Apple will require HTTPS connections for iOS apps by the end of 2016]
https://techcrunch.com/2016/06/14/apple-will-require-https-connections-for-ios-apps-by-the-end-of-2016/

@facebook facebook locked as resolved and limited conversation to collaborators May 24, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 19, 2018
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

10 participants