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

[Android] fetch throwing "Network request failed" in 0.14 #4013

Closed
madwed opened this issue Nov 9, 2015 · 3 comments
Closed

[Android] fetch throwing "Network request failed" in 0.14 #4013

madwed opened this issue Nov 9, 2015 · 3 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@madwed
Copy link

madwed commented Nov 9, 2015

Fetch is throwing a Network request failed error when I try to make a request to a local server. I'm pretty sure the request isn't getting out of the app. I've checked and double checked the request headers and target URL. I tried disabling CORS on my local server. I'm using digits in my app and digits is able to make contact with its server outside the app and return authorization.

@madwed
Copy link
Author

madwed commented Nov 9, 2015

Figured out the issue, because the android emulator runs in a VM localhost points at the device. You need to specify your ip or 10.0.2.2 instead.

@madwed madwed closed this as completed Nov 9, 2015
@blacksunset
Copy link

Hi, how to specify the ip?

@waifo
Copy link

waifo commented Jan 13, 2018

Where do we need to change the ip...?

@facebook facebook locked as resolved and limited conversation to collaborators Jul 20, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

4 participants