Replies: 1 comment 2 replies
-
Hm, I've never had a problem hitting local servers. Can you spin up a local non-proxied server and try to hit that?
Then try to hit http://localhost:8989 with your fetch or apisauce. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone!
First, thank you for this boilerplate. It is amazing!
I'm using ignite with expo, and I'm stuck with local API settings. I want to make requests from simulator to my local services using
apisauce
(but tried also pure fetch). My backend services and APIs running in docker on local host with certificates. I'm using Caddy server to redirects calls from localhost to docker images.Curl, postman e.t.c. works fine. Web version also successfully receive responses, while IOS simulator throws error
[TypeError: Network request failed]
.Looks like a simulator should be configured somehow to make requests to a local server, but I can't find information about that.
My compose file
Caddyfile
my host file
Surely someone has faced the same problem and knows a solution. I would very appreciate for any help!
Beta Was this translation helpful? Give feedback.
All reactions