LoginWithGoogleSdk Error 400

Obtaining accessToken from Google JS SDK,
Calling Backendless.UserService.loginWithGooglePlusSdk(accessToken, true)

Error 400 Bad Request

<script type="text/javascript">
    window.setTimeout( function ()
                                window.opener.postMessage( JSON.stringify( {"fault":"Error while committing the transaction"} ), 'null' );
                                parent.postMessage( JSON.stringify( {"fault":"Error while committing the transaction"} ), 'null' );
                       }, 0 );

Hello @karim-wazzan

Could you please let us know which version of the JS-SDK you use and how do you import it in your project

And provide please your appId

Regards, Vlad

We can reproduce the issue only in case if we try to login a user with the same email which is already used for another Login provider, for instance:

  1. we have a user with email foo@bar
  2. we successfully logged in with Facebook
  3. and now we try to login with Google - here we can see this error

I’ve got an internal ticket BKNDLSS-22571 to fix the error message and to pass the error message up to your code

Regards, Vlad

Hello @vladimir-upirov thank you for your quick reply.

I am using the latest version of the SDK from npm.

App ID: 028AF23A-DE67-970F-FF7B-CE73726F3E00.

Hello @vladimir-upirov

Any updates on this issue?

Hi @karim-wazzan,

we have fixed this issue, but not released it yet. This week it should be released I hope.
We will inform you once it will be released.


1 Like