Skip to content

[Bug]: Firestore queries fail when trying to fetch an object with Blob type #14801

Open
@nidhi-nair

Description

Is there an existing issue for this?

  • I have searched the existing issues

Description

From a user query, we figured that the server was throwing an error when trying to parse a Blob type. Here is the error log:

org.springframework.core.codec.CodecException: Type definition error: [simple type, class com.google.cloud.firestore.Blob]; nested exception is com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class com.google.cloud.firestore.Blob and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS)

The Blob type seems to only have private properties that are inaccessible. We'll need to check if our mapper needs to be marked with additional visibility

Steps To Reproduce

Internal slack message

Public Sample App

No response

Version

Cloud

Metadata

Assignees

Labels

BackendThis marks the issue or pull request to reference server codeBugSomething isn't workingDatatype issueIssues that have risen because data types weren't handledIntegrations ProductIssues related to a specific integrationLow effortTakes 1-2 daysMediumIssues that frustrate users due to poor UXNeeds TriagingNeeds attention from maintainers to triageProductionQuery & JS PodIssues related to the query & JS Podneeds estimateaccording to https://bit.ly/3JNaYTh

Type

No type

Projects

  • Status

    No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions