Thanks to visit codestin.com
Credit goes to github.com

Skip to content

HttpException: Something happened while retrieving data: Unable to resolve host "sdk.split.io" #146

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

Open
YonatanSegura97 opened this issue Mar 31, 2025 · 1 comment

Comments

@YonatanSegura97
Copy link

Hi, I recently discovered that the Split SDK for Flutter throws an HTTP exception when users are connected to a VPN. I'm testing it on a Samsung Galaxy S24 Ultra with Nord VPN. No matter which server I use, the SDK always throws the same error. After disconnecting, my VPN the SDK works perfectly. Many users are experiencing this issue. I can't even handle the exception.

We're using splitio: ^0.1.9

Here is my implementation:

// Init SDK
_split = Splitio(
        sdkKey,
        matchingKey,
        configuration: SplitConfiguration(
          logLevel: SplitLogLevel.verbose,
        ),
      );

// Send User Attributes

  Future<void> setAttributes({required Map<String, dynamic> attributes}) {
    if (_split == null) {
      return Future.value();
    }
    try {
      final Completer<bool> completer = Completer<bool>();
      _split?.client(onReady: (client) async {
        final result = await client.setAttributes(attributes);
        await client.flush();
        completer.complete(result);
      });
      return completer.future;
    } catch (ex) {
      return Future.value();
    }
  }

And the error is:

E/SplitSDK(22200): Error while executing my segments sync task: Network error while retrieving my segments: Error while sending data to https://sdk.split.io/api/mySegments/[myCustomerIdentifier]: HttpException: Something happened while retrieving data: Unable to resolve host "sdk.split.io": No address associated with hostname
D/SplitSDK(22200): Retrying MySegmentsSyncTask task in 4 seconds
E/SplitSDK(22200): Error while executing splits sync/update task: Network error while fetching feature flagsError while sending data to https://sdk.split.io/api/splitChanges: HttpException: Something happened while retrieving data: Unable to resolve host "sdk.split.io": No address associated with hostname
D/SplitSDK(22200): Retrying SplitsSyncTask task in 4 seconds
D/SplitSDK(22200): Push notification manager started
D/TrafficStats(22200): tagSocket(186) with statsTag=0xffffffff, statsUid=-1
V/SplitSDK(22200): Received from: https://auth.split.io/api/v2/auth?s=1.1&users=[myCustomerIdentifier]-> {"pushEnabled":true,"token":"[token]","connDelay":60}
D/SplitSDK(22200): SSE Authentication done, now parsing token
D/SplitSDK(22200): SSE token parsed successfully
E/SplitSDK(22200): Error while executing my segments sync task: Network error while retrieving my segments: Error while sending data to https://sdk.split.io/api/mySegments/[myCustomerIdentifier]: HttpException: Something happened while retrieving data: Unable to resolve host "sdk.split.io": No address associated with hostname
D/SplitSDK(22200): Retrying MySegmentsSyncTask task in 8 seconds
E/SplitSDK(22200): Error while executing splits sync/update task: Network error while fetching feature flagsError while sending data to https://sdk.split.io/api/splitChanges: HttpException: Something happened while retrieving data: Unable to resolve host "sdk.split.io": No address associated with hostname
D/SplitSDK(22200): Retrying SplitsSyncTask task in 8 seconds
D/SplitSDK(22200): SDK_READY_TIMED_OUT event triggered
E/SplitSDK(22200): Error while executing my segments sync task: Network error while retrieving my segments: Error while sending data to https://sdk.split.io/api/mySegments/[myUserIdentifier]: HttpException: Something happened while retrieving data: Unable to resolve host "sdk.split.io": No address associated with hostname
D/SplitSDK(22200): Retrying MySegmentsSyncTask task in 16 seconds
E/SplitSDK(22200): Error while executing splits sync/update task: Network error while fetching feature flagsError while sending data to https://sdk.split.io/api/splitChanges: HttpException: Something happened while retrieving data: Unable to resolve host "sdk.split.io": No address associated with hostname
D/SplitSDK(22200): Retrying SplitsSyncTask task in 16 seconds

To reproduce it, you just need to install Nord VPN and test your existing app with the Split SDK.

@agustinona
Copy link

Hi @YonatanSegura97 many VPNs now come with adblocking capabilities and unfortunately some of the lists used for this include some of our domains (sdk.split.io in this case). In such case, in order to resolve the issue you'd need to allow *.split.io through.

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

No branches or pull requests

2 participants