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

Exception occured during Firebase Http request. #199

Open
asmplease opened this issue Apr 7, 2023 · 1 comment
Open

Exception occured during Firebase Http request. #199

asmplease opened this issue Apr 7, 2023 · 1 comment

Comments

@asmplease
Copy link

// 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
Copy link
Collaborator

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?

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