-
Notifications
You must be signed in to change notification settings - Fork 615
E/Volley: [2672] BasicNetwork.performRequest: Unexpected response code 400 for https://www.googleapis.com/identitytoolkit/v3/relyingparty/signupNewUser? #330
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
Comments
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight. |
@kisanzxy does this happen every time you create a new user? What are the steps to reproduce this? |
@samstern |
@kisanzxy can you please provide the code that causes this issue? And what is the phone model? What version of Google Play services (settings --> apps --> Google Play services) is running on the phone? |
@samtstern And for the code. Could I email you or invite you as a collaborator? |
@kisanzxy please just provide a small snippet of code here where the problem occurs, we can't look at or debug your whole project. |
@samtstern This is where the bug might be; it always goes into the else branch and prints out And there is a snippet of the Gradle file project level dependencies {
classpath 'com.android.tools.build:gradle:3.3.2'
classpath 'com.google.gms:google-services:4.0.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
} app level dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.google.firebase:firebase-core:16.0.7'
implementation 'com.google.firebase:firebase-auth:16.2.0'
} private void createAccount(String email, String password) {
Log.d(TAG, "createAccount:" + email);
if (!validateForm()) {
return;
}
// [START create_user_with_email]
mAuth.createUserWithEmailAndPassword(email, password)
.addOnCompleteListener(getActivity(), new OnCompleteListener<AuthResult>() {
@Override
public void onComplete(@NonNull Task<AuthResult> task) {
if (task.isSuccessful()) {
// Sign in success, update UI with the signed-in user's information
Log.d(TAG, "createUserWithEmail:success");
Toast.makeText(getActivity(), "CreateAccount Success.",
Toast.LENGTH_SHORT).show();
FirebaseUser user = mAuth.getCurrentUser();
} else {
// If sign in fails, display a message to the user.
Log.w(TAG, "createUserWithEmail:failure", task.getException());
Toast.makeText(getActivity(), "CreateAccount Authentication failed.",
Toast.LENGTH_SHORT).show();
}
}
});
// [END create_user_with_email]
} |
@malcolmdeck any idea what might cause a simple |
+Leonardo Siracusa <[email protected]>
This looks new to me. Leo, any ideas?
…On Tue, Apr 2, 2019, 9:03 AM Sam Stern ***@***.***> wrote:
@malcolmdeck <https://github.com/malcolmdeck> any idea what might cause a
simple createUserWithEmailAndPassword to return a 400 error? The device
has latest GmsCore (16.0.089) and the code works on an emulator, which is
the opposite of the problem people normally have.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#330 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AWl8K97b8PfLFDoOIovWdf0pNgBziJS8ks5vc39ngaJpZM4cW9HG>
.
|
What exception is it failing with? |
@samtstern |
This thread can be closed |
Uh oh!
There was an error while loading. Please reload this page.
[READ] Step 1: Are you in the right place?
Issues filed here should be about bugs in the code in this repository.
If you have a general question, need help debugging, or fall into some
other category use one of these other channels:
with the firebase tag.
google group.
of the above categories, reach out to the personalized
Firebase support channel.
[REQUIRED] Step 2: Describe your environment
[REQUIRED] Step 3: Describe the problem
E/Volley: [2672] BasicNetwork.performRequest: Unexpected response code 400 for https://www.googleapis.com/identitytoolkit/v3/relyingparty/signupNewUser?alt=proto&key=api-key
Error occurs when creating a new user
Steps to reproduce:
What happened? How can we make the problem occur?
testing on an Android device, but no error when using an emulator
This could be a description, log/console output, etc.
Relevant Code:
The text was updated successfully, but these errors were encountered: