forceWifiUsage causes all network requests to fail
See original GitHub issueI’m trying to connect to an IoT-like device that has a hotspot but does not have internet. If I don’t call forceWifiUsage(true), then I can get successful responses using fetch and RNFetchBlob. If I try to force wifi usage, however, all of my proceeding requests fail. When using fetch, I see TypeError: Network request failed
and when using RNFetchBlob I’m seeing Error: socket failed: ENONET (Machine is not on the network)
.
I’m having a hell of a time trying to understand what’s happening. Any help would be greatly appreciated.
Issue Analytics
- State:
- Created 3 years ago
- Comments:10
Top Results From Across the Web
Flutter/Dart force request to use wifi, even with no internet
I'm sending requests to the local network device (with IP address in URL), but it fails randomly. I suspect Android tries cellular network...
Read more >JuanSeBestia/react-native-wifi-reborn - GitHub
This will route all app network requests to the network (instead of the mobile connection). It is important to disable it again after...
Read more >Flutter socket connect in Android 12 local IOT WiFi
forceWifiUsage(true); 4) Click connectSocket if it fails it will show socket exception on the top of the page. Feel free to check from...
Read more >Handling “The network connection was lost” Errors
This error means that the underlying TCP connection that's carrying the HTTP request disconnected while the HTTP request was in progress ...
Read more >Network Error Logging - HTTP - MDN Web Docs
In these examples, the entire reporting API payload is shown. The top-level "body" key contains the network error report. HTTP 400 (Bad Request) ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Connecting and locking to a network:
Releasing a lock and disconnecting:
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community attention? This issue may be closed if no further activity occurs.