firebase / flutterfire

🔥 A collection of Firebase plugins for Flutter apps.
https://firebase.google.com/docs/flutter/setup
BSD 3-Clause "New" or "Revised" License
8.44k stars 3.91k forks source link

BUG: unhandled exception No address associated with hostname #12715

Open joukhar opened 2 weeks ago

joukhar commented 2 weeks ago

Is there an existing issue for this?

Which plugins are affected?

App Check

Which platforms are affected?

Android

Description

this error occurs when user has no internet connection, i believe it's (Socket exception) on this function :

await appCheckInstance.getToken();

unhandled exception No address associated with hostname

Reproducing the issue

call await appCheckInstance.getToken(); with no source of internet in your device.

Firebase Core version

2.27.0

Flutter Version

3.19.5

Relevant Log Output

No response

Flutter dependencies

Expand Flutter dependencies snippet
```yaml firebase_core: ^2.27.0 firebase_auth: ^4.17.8 google_sign_in: ^6.2.1 firebase_crashlytics: ^3.4.18 firebase_analytics: ^10.10.4 firebase_app_check: ^0.2.2+1 ```

Additional context and comments

No response

TarekkMA commented 2 weeks ago

@joukhar, Thank you for reporting this issue. please provide additional details about the issue. Capture and print the error with the stack trace using the following snippet:

try {
    // Your code here
} catch (e, stk) {
    print(e.toString());
    debugPrintStack(stackTrace: stk);
}

This information is can help us to figure out what's wrong.

google-oss-bot commented 1 week ago

Hey @joukhar. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!