Skip to content

[cloud_firestore/unknown] error-Invalid argument (dartObject): Could not convert: Instance of 'Timestamp' #5506

@Puspharaj

Description

@Puspharaj

Flutter Web application here - 2.0.1

I'm in the middle of production release, please help asap. Thanks!!

Version: 1.54.3 (user setup)
Commit: 2b9aebd5354a3629c3aba0a5f5df49f43d6689f8
Date: 2021-03-15T10:55:45.459Z
Electron: 11.3.0
Chrome: 87.0.4280.141
Node.js: 12.18.3
V8: 8.7.220.31-electron.0
OS: Windows_NT x64 10.0.19042

equatable: ^2.0.0
firebase_auth: ^1.0.1
google_sign_in: ^4.5.1
firebase_core: ^1.0.2
cloud_firestore: ^1.0.3
firebase_core_web: ^1.0.2
cloud_firestore_web: ^1.0.3
firebase_storage: ^8.0.1
firebase_analytics: ^7.0.1

#2153

I believe this is seems to be resolved but pops up again, cloud_firestore_web: ^1.0.3 to eliminate the error.

I have bunch of nested objects in main object, While trying to save into firebase firestore , it's throws the error.
This is the object I'm going to save it in firestore. Item list having timestamp that causing this error again.

         `[Item(78bfc5b6-8208-4ffa-ae19-71226afa9717, Timestamp(seconds=1615961406, 
          nanoseconds=388000000), Timestamp(seconds=1615961406, nanoseconds=388000000)), 
          Item(78bfc5b6-8208-4ffa-ae19-71226afa9717, Timestamp(seconds=1615961406, 
          nanoseconds=388000000), Timestamp(seconds=1615961406, nanoseconds=388000000)), 
          Item(78bfc5b6-8208-4ffa-ae19-71226afa9717, Timestamp(seconds=1615961406, 
          nanoseconds=388000000), Timestamp(seconds=1615961406, nanoseconds=388000000))]
          `

The error occurs at the list of timestamp i gues. Any help appreciated. Thanks!

Metadata

Metadata

Assignees

Labels

StaleIssue with no recent activityblocked: customer-responseWaiting for customer response, e.g. more information was requested.platform: webIssues / PRs which are specifically for web.plugin: cloud_firestoretype: bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions