Coder Social home page Coder Social logo

[Android] Firestore: Couldn't put object of type Plugin.Firebase.Android.Firestore.DocumentReferenceWrapper into HashMap about plugin.firebase HOT 6 CLOSED

tobiasbuchholz avatar tobiasbuchholz commented on September 14, 2024
[Android] Firestore: Couldn't put object of type Plugin.Firebase.Android.Firestore.DocumentReferenceWrapper into HashMap

from plugin.firebase.

Comments (6)

TobiasBuchholz avatar TobiasBuchholz commented on September 14, 2024 1

Hmm, after running your test project both button clicks seemed to work, see the screenshots:

Screenshot_20220818-153515
Screenshot_20220818-153524

I've created a test for it myself and also couldn't reproduce this errror. If I'm looking at your stacktrace, I think the commit 984f79c has fixed this issue already and was released with the plugin version 1.1.0.

Maybe you have some older version cached or something like this? Otherwise I've no idea how this could be possible.

from plugin.firebase.

Kapusch avatar Kapusch commented on September 14, 2024

Hi @TobiasBuchholz , please find this MRE to reproduce the issue on Android : PluginFirebase_Issue_55.zip
All you need to do is pressing the button specific for this issue

Thanks in advance !

from plugin.firebase.

Kapusch avatar Kapusch commented on September 14, 2024

Hello @TobiasBuchholz , did you test the sample app with a reference to your last released NuGet ?
Because I tried it with a direct reference to your project (not the NuGet) for debug purpose, and it's exactly as you said : the error is not reproducible...

Would it be possible that the NuGet has been released without the fix ? (e.g. Merge conflict, ...)

from plugin.firebase.

TobiasBuchholz avatar TobiasBuchholz commented on September 14, 2024

I've just unpacked your zip file, opened the project, restored the nuget packages and started it. The project is referencing the plugin version 1.1.2 and if you decompile the package you can see the code for the fix is contained:

Screenshot 2022-08-19 at 15 28 23

So I still believe there is no problem and you can close the issue if you agree.

from plugin.firebase.

Kapusch avatar Kapusch commented on September 14, 2024

You were right @TobiasBuchholz , I completely forgot that I had referenced a local version I made of your package, with the exact version number ... obviously this has led to mismatch the actual one I did want to target !

Indeed, here is what mentions the documentation about package references :
For projects using the PackageReference format, NuGet uses local sources first, then sources on network shares, then HTTP sources, regardless of the order in the configuration files..

Hence, the solution I opted for is creating a nuget.config with a packageSourceMapping section for mapping the right package sources, whether it's nuget.org or local path.

And I was able to confirm it now downloads from the official package source :

Package source mapping matches found for package ID 'Plugin.Firebase' are: 'nuget.org'.
  GET https://api.nuget.org/v3-flatcontainer/plugin.firebase/index.json
  OK https://api.nuget.org/v3-flatcontainer/plugin.firebase/index.json 229ms
  GET https://api.nuget.org/v3-flatcontainer/plugin.firebase/1.1.2/plugin.firebase.1.1.2.nupkg
  OK https://api.nuget.org/v3-flatcontainer/plugin.firebase/1.1.2/plugin.firebase.1.1.2.nupkg 219ms

from plugin.firebase.

Kapusch avatar Kapusch commented on September 14, 2024

Referencing your package from the right source did fix the issue, closing ticket, thanks Tobias for your help.

from plugin.firebase.

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.