f-miyu / Plugin.CloudFirestore

MIT License
121 stars 44 forks source link

Java.Util.AbstractMapInvoker is not supported #39

Closed DariuszKalita closed 4 years ago

DariuszKalita commented 4 years ago

Hi, I got this issue recently while invoking listener for a documents collection and calling ToObject() method. The exception details point to a document's Data field.

: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. : Parameter name: Java.Util.AbstractMapInvoker is not supported : at Plugin.CloudFirestore.FieldValueExtensions.ToFieldValue (Java.Lang.Object fieldValue, System.Type type) [0x006e6] in <765f65ff520546e3840ea02313dc2f05>:0 : at Plugin.CloudFirestore.DocumentMapper.Map[T] (Firebase.Firestore.DocumentSnapshot source, System.Nullable`1[T] serverTimestampBehavior) [0x001a6] in <765f65ff520546e3840ea02313dc2f05>:0 : at Plugin.CloudFirestore.DocumentSnapshotWrapper.ToObject[T] () [0x00000] in <765f65ff520546e3840ea02313dc2f05>:0

angelru commented 4 years ago

@f-miyu @DariuszKalita The same issue any solution?

angelru commented 4 years ago

nothing works from the cloudfirestore

tomasszabo commented 4 years ago

Caused by missing mappings. I've fixed that in PR, but don't know how long it will take to release official Nuget package update, therefore if interested, use unofficial fix (without any warranty):

Plugin.CloudFirestore.3.1.0.1.nupkg

Btw. Firestore Bindings are from June 2019, it will be good to update them in order to support new Firestore features.

tomasszabo commented 4 years ago

I've found a problem with embedded objects values not loaded correctly, fixed in PR, here's another unofficial Nuget package:

Plugin.CloudFirestore.3.1.0.2.nupkg

angelru commented 4 years ago

I've found a problem with embedded objects values not loaded correctly, fixed in PR, here's another unofficial Nuget package:

Plugin.CloudFirestore.3.1.0.2.nupkg

works fine, but it would be nice to update Firestore Bindings

wcartaya commented 4 years ago

I got the same error but only if I use Xamarin.Essentials. If I uninstall Xamarin.Essentials, Plugin.CloudFirestore works fine. Just in case...

guillermo-gerard commented 4 years ago

This is happening also in version 2.0.0 (which was working so far). I can reproduce it only with one isolated document, and I cannot see any reason for this document to fail...

f-miyu commented 4 years ago

@tomasszabo Thank you for your pull request and sorry for my late response.

guillermo-gerard commented 4 years ago

Great news @f-miyu !! Thank you I see you just pushed a new nuget already

tomasszabo commented 4 years ago

@f-miyu You're welcome.

DariuszKalita commented 4 years ago

Thank you guys! It works fine.