You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Local IP URL (http://192.168.0.[x]:8081/api/hello) ✅
This makes testing on mobile difficult, especially with createBetterAuthClient({ baseURL }) where baseURL needs to be set to local IP for convenient development.
Expected Behavior
Fetching should work consistently across devices, or this issue should be mentioned in the documentation.
I understand this is not one-specific issue, but perhaps we could tweak Expo/React Native settings on the example templates to make the development experience smoother.
Current Behavior
Making requests to local API on iOS causes
TypeError: Network request failed
error in some cases:/api/hello
) ✅http://localhost:8081/api/hello
) ✅http://192.168.0.[x]:8081/api/hello
) ✅/api/hello
) ❌ – Network request failedhttp://localhost:8081/api/hello
) ✅http://192.168.0.[x]:8081/api/hello
) ✅/api/hello
) ❌ – Network request failedhttp://localhost:8081/api/hello
) ❌ – Network request failedhttp://192.168.0.[x]:8081/api/hello
) ✅This makes testing on mobile difficult, especially with
createBetterAuthClient({ baseURL })
wherebaseURL
needs to be set to local IP for convenient development.Expected Behavior
Fetching should work consistently across devices, or this issue should be mentioned in the documentation.
I understand this is not one-specific issue, but perhaps we could tweak Expo/React Native settings on the example templates to make the development experience smoother.
One Version
Platform (Web, iOS, Android)
Reproduction
https://github.com/domnantas/one/tree/ios-api-issue
System Info
The text was updated successfully, but these errors were encountered: