RodrigoSMarques / flutter_branch_sdk

Flutter Plugin for create deep link using Branch Metrics SDK. This plugin provides a cross-platform (iOS, Android, Web).
https://branch.io
MIT License
100 stars 91 forks source link

PlatformException(-113, Trouble initializing Branch. Failed to connect to api2.branch.io/0.0.0.0:443 Check network connectivity or DNS settings., null, null) from listSession callback #370

Closed Neelansh-ns closed 2 months ago

Neelansh-ns commented 2 months ago

Keep the template and provide all requested information:

Describe the bug We are getting this error being reported to Crashlytics for our production users.

PlatformException(-113, Trouble initializing Branch. Failed to connect to api2.branch.io/0.0.0.0:443 Check network connectivity or DNS settings., null, null) from listSession() callback

Code:

FlutterBranchSdk.listSession().handleError((e, s) {
      print(e);
     //reoprt to crashlytics
    });

Mobile (Please complete the following information. remove session if not Mobile):

RodrigoSMarques commented 2 months ago

This package calls Branch Native SDK functions on each platform.

The problem reported is not in the Flutter plugin, but in the Native SDK.

Please open an issue in the platform repository:

Or open a support ticket for Branch at the link

Neelansh-ns commented 2 months ago

Hi @RodrigoSMarques

I've already raised a support ticket to the Branch team, but they said to open an issue here.

RodrigoSMarques commented 2 months ago

Hi @RodrigoSMarques

I've already raised a support ticket to the Branch team, but they said to open an issue here.

As mentioned above.

The Plugin calls the methods exposed by the Branch SDK.

The Branch SDK connects to its own services.

In the plugin code, there is no reference or connection logic to the Branch APIs, as everything is done by the SDK itself.

The error message in PlatformException was returned by the Branch SDK.

Now, looking at the error message, I notice that after the host name, 0.0.0.0 is being displayed.

Isn't this a configuration issue in your DNS?

RodrigoSMarques commented 2 months ago

PING api2.branch.io (18.64.207.9): 56 data bytes 64 bytes from 18.64.207.9: icmp_seq=0 ttl=244 time=16.858 ms 64 bytes from 18.64.207.9: icmp_seq=1 ttl=244 time=15.535 ms 64 bytes from 18.64.207.9: icmp_seq=2 ttl=244 time=16.077 ms 64 bytes from 18.64.207.9: icmp_seq=3 ttl=244 time=15.840 ms 64 bytes from 18.64.207.9: icmp_seq=4 ttl=244 time=17.919 ms 64 bytes from 18.64.207.9: icmp_seq=5 ttl=244 time=19.336 ms 64 bytes from 18.64.207.9: icmp_seq=6 ttl=244 time=18.932 ms 64 bytes from 18.64.207.9: icmp_seq=7 ttl=244 time=16.289 ms 64 bytes from 18.64.207.9: icmp_seq=8 ttl=244 time=18.387 ms 64 bytes from 18.64.207.9: icmp_seq=9 ttl=244 time=15.423 ms


traceroute: Warning: api2.branch.io has multiple addresses; using 18.64.207.9 traceroute to api2.branch.io (18.64.207.9), 64 hops max, 40 byte packets 1 192.168.18.1 (192.168.18.1) 22.943 ms 2.087 ms 2.127 ms 2 10.63.32.1 (10.63.32.1) 12.260 ms 7.749 ms 5.298 ms 3 10.62.0.9 (10.62.0.9) 8.047 ms 8.756 ms 7.585 ms 4 10.77.1.13 (10.77.1.13) 12.647 ms 15.568 ms 10.336 ms 5 10.77.1.1 (10.77.1.1) 23.776 ms 13.166 ms 11.333 ms 6 10.76.0.9 (10.76.0.9) 33.935 ms 7 10.76.10.2 (10.76.10.2) 12.929 ms 12.854 ms 12.524 ms 8 10.76.9.1 (10.76.9.1) 45.368 ms 13.700 ms 17.209 ms 9 10.30.8.254 (10.30.8.254) 14.368 ms 14.520 ms 14.190 ms 10 10.69.0.126 (10.69.0.126) 15.850 ms 15.506 ms 10.74.1.6 (10.74.1.6) 29.903 ms 11 12 13 14 15 52.93.151.63 (52.93.151.63) 19.551 ms 16.065 ms 15.535 ms 16 17 18 19 *

RodrigoSMarques commented 2 months ago

Closed. No activity in the last 14 days. If necessary open again.