question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Firestore: Couldn't cast property 'foo' of 'bar' because it's not contained in the dictionary

See original GitHub issue

Hi,

I’m seen in my logcat this line appearing quite frequently: [Plugin.Firebase] Couldn't cast property 'foo' of 'bar' because it's not contained in the dictionary

Why did you decide to log something when a property is null? Why not simply skip properties that have not been set in the firestore document?

https://github.com/TobiasBuchholz/Plugin.Firebase/blob/7c9358d68b41239c00e7d214a93ab2b1b4ac591f/src/Firestore/Platforms/Android/Extensions/JavaObjectExtensions.cs#L152

Thanks

Issue Analytics

  • State:closed
  • Created 3 months ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
tranb3rcommented, Jun 30, 2023

Maybe this could be done only in Debug and ignored in Release ?

0reactions
tranb3rcommented, Jul 31, 2023

Danke schön

Read more comments on GitHub >

github_iconTop Results From Across the Web

Supported data types | Firestore - Firebase
This page describes the data types that Cloud Firestore supports. ... An array cannot contain another array value as one of its elements....
Read more >
Firebase Swift Could not cast value of type '__NSArrayM' ...
Firebase Swift Could not cast value of type '__NSArrayM' (0x10591cc30) to 'NSDictionary' · Because snapshot.value is an array, not a dictionary.
Read more >
JSON functions | BigQuery
Inserts JSON data into a JSON array. JSON_EXTRACT, (Deprecated) Extracts a JSON value and converts it to a SQL JSON-formatted STRING or JSON...
Read more >
Best Practices: Arrays in Firebase
Firebase has no native support for arrays. If you store an array, it really gets stored as an “object” with integers as the...
Read more >
Unity firebase get data. Create/Use an Unity project Tutorial li
Cloud Firestore is Firebase's newest database for mobile app development. MessageReceivedEventArgs … Step 1: User-Defined Type. Step 2: Set in-app default ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found