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 with add! and merge! #3

Closed
amarjeet000 opened this issue Apr 25, 2020 · 2 comments
Closed

Issue with add! and merge! #3

amarjeet000 opened this issue Apr 25, 2020 · 2 comments

Comments

@amarjeet000
Copy link

Hi,

Suddenly I started getting the following error in the case of create (add!) and update (merge!) calls:

Execution error (NoSuchMethodError) at com.google.firestore.v1.Document/writeTo (Document.java:480). com.google.protobuf.GeneratedMessageV3.serializeStringMapTo(Lcom/google/protobuf/CodedOutputStream;Lcom/google/protobuf/MapField;Lcom/google/protobuf/MapEntry;I)V

A quick search indicates that there are potentially version issues wrt gRPC/Protobuff. But it is surprising because, the same operations were fine a day ago.

I am wondering if you also have come across the same issue? I tried some deps exclusions, but it hasn't worked yet.

@lurodrigo
Copy link
Owner

Unfortunately I can't reproduce this issue, both add! and merge! are working fine here. Could you provide more details?

Anyway, this lib don't have a direct dependency on gRPC, only on [com.google.firebase/firebase-admin "6.12.2"]. gRPC dependency trees are notably messy, leading to some non-repeatability issues. Did you add a dependency (directly or indirectly) on gRPC recently? Maybe that's leading to these issues.

@amarjeet000
Copy link
Author

It appears that my project is somehow corrupted. I just tried these operations in a fresh new project and things are working fine. My bad it is :( I will close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants