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

ClientException with SocketException: Connection failed (OS Error: No route to host, errno = 65), address = 192.162.10.1, port = 2018, uri=http://192.162.10.1:2018/wiced_ota_server/ssid_chunk.html?ssid=Beah_bug&pwd=123456 #1278

Open
E2-Veera opened this issue Jul 30, 2024 · 1 comment
Labels
package:http type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@E2-Veera
Copy link

I've a flutter iOS app and WiFi IoT device.... I used to connect my mobile and IoT device using my flutter app, Then I have call one GET request to communicate with IoT device. Now the problem is that GET Api give me the following exception

  1. Turn on the IOT device into pairing mode (IOT device start emitting a WiFi connection)
  2. Connect to that IOT device's WiFi using flutter app
  3. Call the GET API request to communicate to IOT device

ClientException with SocketException: Connection failed (OS Error: No route to host, errno = 65), address = 192.168.10.1, port = 2018, uri=http://192.168.10.1:2018/wiced_ota_server/ssid_chunk.html?ssid=Beah_bug&pwd=djdjdjfjfjfjc 2

#0 IOClient.send (package:http/src/io_client.dart:154) #1 BaseClient._sendUnstreamed (package:http/src/base_client.dart:93) #2 _withClient (package:http/http.dart:167) #3 Future.timeout. (dart:async/future_impl.dart:940) #4 _NetworkSetupState.pushWiFiSettingsToBelt (package:aptbelt/WiFiConfiguration/networkSetupPage.dart:459)

Note : Mobile is connected to IoT device, IoT device doesn't have internet connection

GET request should properly work

I've checked the flow manually by connecting to IOT device and call the GET request using chrome.... It's working fine..... in Flutter iOS app it's not working

@E2-Veera E2-Veera added package:http type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) labels Jul 30, 2024
@ProSistemasDev
Copy link

ProSistemasDev commented Aug 22, 2024

Comigo aconteceu o mesmo problema no iOS, meu aplicativo tenta conectar a API local com IP 192.168.0.100 porta 8070 e não conecta, apenas ocorre o problema na versão publicada (release), debug funciona normalmente.

Testando em outra rede com IP 192.168.254.100 funciona normalmente em todas as versões.

Alguém pode me ajudar?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package:http type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

2 participants