Instant-Visio / InstantVisio-WebApp

MIT License
10 stars 2 forks source link

Crash on premium UI #533

Closed stephanelucon closed 3 years ago

stephanelucon commented 3 years ago

Error catched : ` Signin failure error:
Object { message: "Something went wrong. Please try again.", stack: "Rn@https://instantvisio-dev.web.app/static/js/4.ef2b8ba4.chunk.js:2:1065551\nCf/<@https://instantvisio-dev.web.app/static/js/4.ef2b8ba4.chunk.js:2:1222681\nGr/i.a</i.s<@https://instantvisio-dev.web.app/static/js/4.ef2b8ba4.chunk.js:2:1077400\nZr@https://instantvisio-dev.web.app/static/js/4.ef2b8ba4.chunk.js:2:1078445\nJr@https://instantvisio-dev.web.app/static/js/4.ef2b8ba4.chunk.js:2:1078335\nt.Fb@https://instantvisio-dev.web.app/static/js/4.ef2b8ba4.chunk.js:2:1079169\nMr@https://instantvisio-dev.web.app/static/js/4.ef2b8ba4.chunk.js:2:1076463\n", code: "firebaseui/anonymous-upgrade-merge-conflict", credential: {…} } Login.tsx:26:20 TypeError: r is undefined The error may be correlated with this previous error: 46/l<@https://instantvisio-dev.web.app/static/js/main.7951ae29.chunk.js:1:15494

Methods to check: Array(1) w.Polyfill.W.Ue @ client.js?bd8db26:7 react-dom.production.min.js:209 TypeError: Cannot read property 'email' of undefined The error may be correlated with this previous error: TypeError: Cannot read property 'email' of undefined at https://instantvisio-dev.web.app/static/js/main.7951ae29.chunk.js:1:15502 at https://instantvisio-dev.web.app/static/js/4.ef2b8ba4.chunk.js:2:186651 at https://instantvisio-dev.web.app/static/js/4.ef2b8ba4.chunk.js:2:187063 at https://instantvisio-dev.web.app/static/js/4.ef2b8ba4.chunk.js:2:186782 at Object.current (https://instantvisio-dev.web.app/static/js/4.ef2b8ba4.chunk.js:2:187063) at e [as onStateChange] (https://instantvisio-dev.web.app/static/js/4.ef2b8ba4.chunk.js:2:44137) at e.t.handleChangeWrapper (https://instantvisio-dev.web.app/static/js/4.ef2b8ba4.chunk.js:2:42090) at https://instantvisio-dev.web.app/static/js/4.ef2b8ba4.chunk.js:2:41417 at eu (https://instantvisio-dev.web.app/static/js/4.ef2b8ba4.chunk.js:2:1576375) at Object.notify (https://instantvisio-dev.web.app/static/js/4.ef2b8ba4.chunk.js:2:41386)

at https://instantvisio-dev.web.app/static/js/main.7951ae29.chunk.js:1:15502
at https://instantvisio-dev.web.app/static/js/4.ef2b8ba4.chunk.js:2:186651
at https://instantvisio-dev.web.app/static/js/4.ef2b8ba4.chunk.js:2:187063
at https://instantvisio-dev.web.app/static/js/4.ef2b8ba4.chunk.js:2:186782
at https://instantvisio-dev.web.app/static/js/4.ef2b8ba4.chunk.js:2:187063
at https://instantvisio-dev.web.app/static/js/4.ef2b8ba4.chunk.js:2:43882
at https://instantvisio-dev.web.app/static/js/4.ef2b8ba4.chunk.js:2:44316
at Ue (https://instantvisio-dev.web.app/static/js/42.37389247.chunk.js:1:8371)
at Ko (https://instantvisio-dev.web.app/static/js/4.ef2b8ba4.chunk.js:2:1540236)
at Ma (https://instantvisio-dev.web.app/static/js/4.ef2b8ba4.chunk.js:2:1549140)

es @ react-dom.production.min.js:209 logger.ts:115 [2021-01-03T21:34:43.901Z] @firebase/analytics: The measurement ID in the local Firebase config (G-4JYC382BGM) does not match the measurement ID fetched from the server (G-J11HKNY5WZ). To ensure analytics events are always sent to the correct Analytics property, update the measurement ID field in the local config or remove it from the local config. l @ logger.ts:115 `

MattiaPrimavera commented 3 years ago

Can you pls add some context on the issue @stephanelucon ? How did it occur, on what page ?

stephanelucon commented 3 years ago

We have 2 accounts meeting this error (my IV account and Hugo's account). Context : after Google login, you get the premium console screen displayed and then it crashes. Not all accounts are concerned: my other account is fine. Nota: the crashed account has no quota data, while the not-crashing account has actual quotas set up (-> could be, maybe, indirectly related to the crash).

HugoGresse commented 3 years ago

it crash on all google account, no mater if the user was alread in the database or not. I believe it's related to the login itself on something inside catched by the login.

HugoGresse commented 3 years ago

I think it's related to the upgrade from anonymous:

{…} ​ code: "firebaseui/anonymous-upgrade-merge-conflict" ​ credential: {…} ​​ a: null ​​ accessToken: "ya29.a0AfH6SMDjieM_2d5Sj0aiIzcqhB6exXMA1JYNRH_fVvvq7fiHg" ​​ idToken: "eyJhbGdlUkLI6TCAzP3cTjqw" ​​ providerId: "google.com" ​​ signInMethod: "google.com" ​​

: Object { ja: ja(e), b: b(e, t), c: c(e, t) , … } ​ message: "Something went wrong. Please try again."
MattiaPrimavera commented 3 years ago

Signin failure error message is normal. It is logged when the user upgrades from anonymous to non-anonymous. With my account it gives the following error:

TypeError: Cannot read property 'sentEmails' of undefined
The error may be correlated with this previous error:
TypeError: Cannot read property 'sentEmails' of undefined

which I believe is the one causing the crash.

From what I see, it seems the API is not returning the usage property for google accounts