firebase / firebaseui-web

FirebaseUI is an open-source JavaScript library for Web that provides simple, customizable UI bindings on top of Firebase SDKs to eliminate boilerplate code and promote best practices.
https://firebase.google.com/
Apache License 2.0
4.56k stars 1.05k forks source link

Occasional 'Malformed response cannot be parsed' error with Twitter sign-in #244

Closed maryam-abdullah closed 6 years ago

maryam-abdullah commented 6 years ago

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.

bojeil-google commented 6 years ago

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

maryam-abdullah commented 6 years ago

Thank you.

ronnievsmith commented 6 years ago

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.

calchulus commented 6 years ago

Also having the same problem

bojeil-google commented 6 years ago

This should be fixed.

decent-developer commented 5 years ago

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?

bojeil-google commented 5 years ago

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.

mapo-lp commented 5 years ago

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

snakajima commented 5 years ago

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

narugami commented 5 years ago

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

ljle commented 3 years ago

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.

Jood80 commented 2 years ago

any updates on this?

avionics18 commented 4 months ago

Any updates?