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

Fails on iOS 16.x in flutter app #10

Closed
hbelser opened this issue Mar 2, 2023 · 0 comments · Fixed by #11
Closed

Fails on iOS 16.x in flutter app #10

hbelser opened this issue Mar 2, 2023 · 0 comments · Fixed by #11

Comments

@hbelser
Copy link

hbelser commented Mar 2, 2023

Has anyone successfully used this package on iOS 16.x? Running a simple Flutter App causes the following persistent socket send error, details below.

The error (OS Error: No route to host, errno = 65) seems to point to a Local Network access issue, however the App does have Local Network Access enabled in Settings.

flutter: ^[[35m[10:47:47.236] [esp_smartconfig] [DEBUG] Creating UDP socket on port 18266<…>
flutter: ^[[35m[10:47:47.261] [esp_smartconfig] [DEBUG] UDP socket on port 18266 successfully created<…>
flutter: ^[[32m[10:47:47.274] [esp_smartconfig] [INFO] Provisioning started<…>
flutter: ^[[31m[10:47:47.283] [esp_smartconfig] [ERROR] Socket error^[[0m
^[[31m[exception] SocketException: Send failed (OS Error: No route to host, errno = 65), address = 0.0.0.0, port = 18266^[[0m
^[[31m[stacktrace]^[[0m
#0 _NativeSocket.send (dart:io-patch/socket_patch.dart:1213:34)
#1 RawDatagramSocket.send (dart:io-patch/socket_patch.dart:2460:15)
#2 Protocol.send (package:esp_smartconfig/src/protocol.dart:129:20)
#3 Protocol.sendBlock.
(package:esp_smartconfig/src/protocol.dart:63:7)
#4 Bottleneck.flow (package:esp_smartconfig/src/bottleneck.dart:22:7)
#5 Protocol.sendBlock (package:esp_smartconfig/src/protocol.dart:75:18)
#6 Protocol.loop (package:esp_smartconfig/src/protocol.dart:98:5)
#7 Provisioner._startProvisioning. (package:esp_smartconfig/src/provisioner.dart:204:38)
#8 _Timer._runTimers (dart:isolate-patch/timer_impl.dart:398:19)
#9 _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:429:5)
#10 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.d<…>
flutter: ^[[31m[10:47:47.285] [esp_smartconfig] [ERROR] Socket error: SocketException: Send failed (OS Error: No route to host, errno = 65), address = 0.0.0.0, port = 18266<…>
flutter: ^[[35m[10:47:47.288] [esp_smartconfig] [DEBUG] Destroying isolate<…>
flutter: ^[[32m[10:47:47.289] [esp_smartconfig] [INFO] Provisioning stopped<…>

@abobija abobija linked a pull request Mar 6, 2023 that will close this issue
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.

1 participant