step-up-labs / firebase-authentication-dotnet

C# library for Firebase Authentication
MIT License
376 stars 129 forks source link

Exception occured during Firebase Http request. #199

Open asmplease opened 1 year ago

asmplease commented 1 year ago

// Configure... var config = new FirebaseAuthConfig { ApiKey = "abc", AuthDomain = "xyz.firebaseapp.com" };

        // ...and create your FirebaseAuthClient
        var client = new FirebaseAuthClient(config);
        try
        {
            var userCredential = await client.SignInAnonymouslyAsync();
        }
        catch (FirebaseAuthException ex)
        {

        }

Exception occured during Firebase Http request. Url: https://www.googleapis.com/identitytoolkit/v3/relyingparty/signupNewUser?key={key} Request Data: {"returnSecureToken":true} Response: Reason: Undefined

I tried the above . Works perfectly fine in console app . But when I do in Xamarin forms android it throws above error.

bezysoftware commented 1 year ago

Since the response is empty, it looks like it didn't actually go thru. Do you have internet available in the Android instance, maybe do you need to explicitly allow it?