Skip to content
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

Issue on Mac os and Ios devices: evaluating 'o.fbase_key' #7737

Closed
praveenfsdev opened this issue Oct 30, 2023 · 9 comments
Closed

Issue on Mac os and Ios devices: evaluating 'o.fbase_key' #7737

praveenfsdev opened this issue Oct 30, 2023 · 9 comments

Comments

@praveenfsdev
Copy link

Operating System

iOS 14, 15, 16, 17 and Mac OS X 10.15

Browser Version

Safari, Mobile Safari and Chrome Mobile ios.

Firebase SDK Version

10.5.0

Firebase SDK Product:

Auth, Database

Describe your project's tooling

React with typescript.

Describe the problem

Here is the error message which I was receiving from Bugsnag(Error tracking tool).
Screenshot from 2023-10-30 13-30-38

This error is not occurring always when I load the app. But this is happening often( around 5 times a day) for an users.

Steps and code to reproduce issue

There is no dedicated steps to reproduce. This is reproducing some times when an app is loading on ios and Mac os browsers.

@praveenfsdev praveenfsdev added new A new issue that hasn't be categoirzed as question, bug or feature request question labels Oct 30, 2023
@argzdev argzdev removed the new A new issue that hasn't be categoirzed as question, bug or feature request label Oct 30, 2023
@pragatimodi
Copy link

Hi, thanks for reporting this issue.
Can you share more details about how frequently you see this error and if there's a specific event flow that triggers it?

@praveenfsdev
Copy link
Author

@pragatimodi The frequency rate is 5 - 6 times a day as I have mentioned in the description and this issue happening when an app gets loading.
Note: This error is not occurring every time on load. It is happening randomly.

@DellaBitta
Copy link
Contributor

Hi @praveenfsdev,

This is a standard operation that occurs during the initialization of Firebase Auth. A few follow up questions if you don't mind:

  • 5-6 times a day out of how many page loads?
  • Is it failing in certain environments and not others?
  • Can you provide more information about the browser that the user is running?
  • Does it throw an error every time the user attempts to use the Web App, or only some of the times?
  • Do you have a stack trace for the error?

Thanks!

@praveenfsdev
Copy link
Author

Hi @DellaBitta , Sure here are the details:

  • The average page load will be around 1000.
  • Yes as mentioned in the description, it is happening only on 2OS. one is Mac OS and the second is iOS.
  • I have already attached the browsers in the description.(Safari, Mobile Safari and Chrome Mobile ios)
  • It is not happening every time, it is only happening randomly.
  • Here is the stack trace of the error.
    TypeError undefined is not an object (evaluating 'o.fbase_key') src/platform_browser/persistence/indexed_db.ts:372:17 build/static/node_modules/regenerator-runtime/runtime.js:63:44 tryCatch build/static/node_modules/regenerator-runtime/runtime.js:294:30 build/static/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js:3:24 asyncGeneratorStep build/static/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js:25:27 _next

@praveenfsdev
Copy link
Author

@DellaBitta still we are getting this error at the same rate. Any update on this?

@DellaBitta DellaBitta assigned DellaBitta and unassigned pragatimodi Nov 29, 2023
DellaBitta added a commit that referenced this issue Nov 29, 2023
…/persistence. (#7825)

Protection from enumerating an empty list in Auth's reading of IndexedDB results, as this causes errors in some macOS and iOS browser runtimes.

This change addresses Issue #7737 which reported an error of `TypeError undefined is not an object (evaluating 'o.fbase_key')`.
@DellaBitta
Copy link
Contributor

Hi @praveenfsdev,

I've just merged a change that should be part of the next release and it should prevent this error from occuring. I'll update this GitHub issue again when the release is out so that you may test it.

@DellaBitta
Copy link
Contributor

Hi @praveenfsdev,

Firebase JS SDK v10.7.1 has been released. Can you give it a try for this error scenario? Thanks!

@google-oss-bot
Copy link
Contributor

Hey @praveenfsdev. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

@google-oss-bot
Copy link
Contributor

Since there haven't been any recent updates here, I am going to close this issue.

@praveenfsdev if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.

@firebase firebase locked and limited conversation to collaborators Jan 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants