Skip to content

Simulator fetching to localhost services throw the error [TypeError: Network request failed] #2672

Answered by ivandata
ivandata asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @jamonholmgren thank you for a quick response.
TBH, your advice really helped me move forward in my config. Indeed, If I run single server with http it works. But here is a thing.
If I try to use secure connection for local server, like https://localhost:port/ or https://local.chemiapp.com it's throw the error. using named localhost without https lead to connection problems, thats why I'm trying to use https in this case

Also, then I'm trying to use real mobile, I see this screen. I'm using npx expo start --tunnel command.

I know this is not directly related to the ignite, but probably you work a lot with Expo maybe you can help.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@jamonholmgren
Comment options

@ivandata
Comment options

Answer selected by ivandata
@jamonholmgren
Comment options

@ivandata
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants