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

Not able to access API from expo app or phone browser #155

Open
shariandabre opened this issue Jun 14, 2024 · 1 comment · May be fixed by #158
Open

Not able to access API from expo app or phone browser #155

shariandabre opened this issue Jun 14, 2024 · 1 comment · May be fixed by #158

Comments

@shariandabre
Copy link

I had made some changes to the project. I am not able to make request from an expo prebuild app. All my tRPC request give me this error.
WARN [TRPCClientError: Network request failed]
But when I run the expo app in the web I face no issues.

@nickfujita nickfujita linked a pull request Jul 5, 2024 that will close this issue
@nickfujita
Copy link

Had this same issue. Seems it was caused by a breaking change in wrangler which no longer makes the dev server available on your local machine ip by default, but instead limits it to only be accessed on localhost.

You now need to update api dev command with the following:
https://github.com/timothymiller/t4-app/blob/master/packages/api/package.json#L7

wrangler dev --ip 0.0.0.0

Filed a PR to fix this: #158

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants