User doesn't get registered in firebase and I get this very weird Error on this function :
Future<String?> registerUsingEmailAndPassword(
String _email, String _password) async {
try {
UserCredential credentials = await _auth.createUserWithEmailAndPassword(
email: _email, password: _password);
return credentials.user!.uid;
} on FirebaseAuthException {
print("Error registering user.");
} catch (e) {
print(e);
}
}
W/System (15312): Ignoring header X-Firebase-Locale because its value was null.
I/System.out(15312): [okhttp]:check permission begin!
I/System.out(15312): [okhttp]:not MMS!
I/System.out(15312): [okhttp]:not Email!
I/System.out(15312): [socket]:check permission begin!
I/System.out(15312): [OkHttp] sendRequest<<
E/com.google.android.gms.internal.firebase-auth-api.zzyd(15312): Failed to parse error for string [
Error 403 (Forbidden)!!1 403. That’s an error.
Your client does not have permission to get URL /identitytoolkit/v3/relyingparty/signupNewUser
from this server. That’s all we know.] with exception: Value <!DOCTYPE of type java.lang.String cannot be converted to JSONObject
I/flutter (15312): Error registering user.