Firebaseui-web: Occasional 'Malformed response cannot be parsed' error with Twitter sign-in

Created on 16 Nov 2017  路  11Comments  路  Source: firebase/firebaseui-web

When signing in with Twitter, I sometimes get the error below:

POST https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifyAssertion?key= 400 ()
[firebaseui] Internal error: {"error":{"errors":[{"domain":"global","reason":"invalid","message":"Malformed response cannot be parsed"}],"code":400,"message":"Malformed response cannot be parsed"}}

{
"error": {
"errors": [
{
"domain": "global",
"reason": "invalid",
"message": "Malformed response cannot be parsed"
}
],
"code": 400,
"message": "Malformed response cannot be parsed"
}
}

And then, when I sign in again, it does successfully.
Previously, everything was working fine.

Thanks in advance.

bug

Most helpful comment

the issue is happening to me everyday .. somebody found a fix?

All 11 comments

Hey @maryam-abdullah I will relay your issue to the Firebase Auth backend team. Thanks,

Thank you.

I had this same issue using Twitter Oauth, namely Malformed response cannot be parsed message.

The fix was for me to sign out of my Twitter account that has the oauth app then sign back in. That seems to be the fix for me.

Also having the same problem

This should be fixed.

Not fixed, just experienced this exact issue twice in a row while developing. This is my first project with Firebase, and I have to say this doesn't give me confidence in the product. How often do things like this happen?

This is not the right forum for issues related to Twitter sign-in or other underlying communication issues between Firebase Auth server and Twitter OAuth endpoint. This open forum is for client side FirebaseUI related issues. Please open a bug with Firebase support. You will be asked to provide project related settings to help debug individual project related errors that are better resolved for a private channel.

the issue is happening to me everyday .. somebody found a fix?

It happens to me as well, not just occasionally but very often.

The best way is to stop using Firebase. I did.

This is happening to us on an app live in production with paying customers. @ronnieroyston's workaround didn't work, tried in various browsers and nothing. Clearing site data and cookies or incognito mode didn't work either, the Twitter Auth page isn't even reached, it just loads and goes back to the Firebase app and shows the "Malformed response cannot be parsed from twitter.com for OAUTH1_REQUEST_TOKEN" error. Even revoking access to the Firebase app from the Twitter account does not work.

image

Frankly, it's embarrassing this has been an issue for 4 years and there's no fix yet.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mesqueeb picture mesqueeb  路  5Comments

AnthonyNahas picture AnthonyNahas  路  3Comments

joshkuhar picture joshkuhar  路  5Comments

andig picture andig  路  4Comments

jin-chong picture jin-chong  路  5Comments