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

HTTP 500 Code #329

Closed
FantaMagier opened this issue Jul 8, 2024 · 3 comments
Closed

HTTP 500 Code #329

FantaMagier opened this issue Jul 8, 2024 · 3 comments
Labels
awaiting answers There is no activity for a while

Comments

@FantaMagier
Copy link

With the Flutter SDK sometimes some user a get a io error with a HTTP 500 Repsonse but their have a internation Connection. The Method: qonversion_internal.dart in QonversionInternal.remoteConfig
and get the following Error:

PlatformException: PlatformException(NetworkConnectionFailed, There was a network issue. Please make sure that the Internet connection is available on the device, Unable to resolve host "api.qonversion.io": No address associated with hostname, null)

or PlatformException: PlatformException(-1009, Es besteht anscheinend keine Verbindung zum Internet., Qonversion Error Code: -1009, null)

I think the users have an Internet connection, otherwise they couldn't send the Sentry Crash Report.

I am using the newest Qonversion Flutter SDK

class RemoteConfigNotifer extends StateNotifier<QRemoteConfig?> {
  RemoteConfigNotifer() : super(null);

  void loadRemoteConfig() async {
    final remoteConfig = await Qonversion.getSharedInstance().remoteConfig();

    state = remoteConfig;
    gRemoteConfig = remoteConfig;
  }
}

final remoteConfigProvider = StateNotifierProvider<RemoteConfigNotifer, QRemoteConfig?>(
  (ref) => RemoteConfigNotifer(),
);
@suriksarkisyan
Copy link
Contributor

Hi, @FantaMagier
NetworkConnectionFailed error is our wrapper above Android OS and Google Billing errors that indicate problems with the internet connection. I mean, we have no additional logic there; we just proxy the internet connection error from the system.

Copy link
Contributor

This issue is stale because it has been open 7 days with no activity. Remove stale label or comment or this will be closed in 5 days.

@github-actions github-actions bot added the awaiting answers There is no activity for a while label Jul 16, 2024
Copy link
Contributor

This issue was closed because it has been stalled for 5 days with no activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting answers There is no activity for a while
Development

No branches or pull requests

2 participants