Coder Social home page Coder Social logo

Comments (9)

russellwheatley avatar russellwheatley commented on July 24, 2024

@rabejarano - out of curiosity, have you tried a get() request to find a document which has a master_league property with the value true or false? It might be that it slipped into your database somehow which is why this exception is appearing.

from flutterfire.

rabejarano avatar rabejarano commented on July 24, 2024

At first I thought it could be something like that, a bad implementation. But if this were the case, the previous data called market_cap would present the problem.

On the other hand, I have a flow of an average of 20k users per month and for example in this month of May the error only occurred in 700 users. If it were a bad technical implementation it should happen to everyone :s.

The last thing and what seems even more strange to me is that I did the same implementation in a test, as you can see above and it works correctly.

Honestly, im very confused.

If you need me to share some specific information with you, I have no problem providing it to you.

Thank you so much for your help

from flutterfire.

russellwheatley avatar russellwheatley commented on July 24, 2024

I don't know where that property is in the structure of your database, but maybe run a test to find a document in whatever collection it is in, to find a master_league property with a boolean value to see if it is there?

from flutterfire.

rabejarano avatar rabejarano commented on July 24, 2024

It is very strange because as I share the image above with the test I previously did, this error never happens to me. Everything works correctly for me.

In the image above the way I have the database structured is

collection/document/data

app_setup/features/master_league

The point is that if it were indeed poorly structured, all users should perceive this error, but this is not the case. only a few users have the error.

from flutterfire.

russellwheatley avatar russellwheatley commented on July 24, 2024

In your screenshot, you're casting it to a map, but the exception is telling you it is a boolean.
Screenshot 2024-06-05 at 12 23 46

If it isn't master_league, it might be something else in your database that is supposed to be a map but is a boolean. I can't help you on this without a reproduction I'm afraid.

from flutterfire.

rabejarano avatar rabejarano commented on July 24, 2024

But that's the problem, I don't know how to reproduce it. I don't understand how Firebase is recognizing a Map as a Boolean.

What else could be in my database? I can share with you whatever you need.

from flutterfire.

russellwheatley avatar russellwheatley commented on July 24, 2024

I would add logging to the part where you parse the data, particularly where you are expecting a map. It looks like something in your database is a boolean when a map is expected. That is the what the exception is saying. If you can find out what the user was doing when the exception occurred, that would narrow it down as you could add logging to that specific area of your app.

from flutterfire.

ricardobegar avatar ricardobegar commented on July 24, 2024

Thank you very much for your answer. I'm going to add tracking. You're very kind.

from flutterfire.

google-oss-bot avatar google-oss-bot commented on July 24, 2024

Hey @rabejarano. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 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!

from flutterfire.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.