-
Notifications
You must be signed in to change notification settings - Fork 4k
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
[cloud_firestore] error-Invalid argument (dartObject): Could not convert: Instance of 'Timestamp' #2153
Comments
Hi @kushvatsa |
@kushvatsa can you also describe a little bit the data structures you're using? Is the Timestamp failing in the Is this because your |
@ditman , yes. TimeStamp failing in the |
@iapicca , check the above comment. Thanks! |
Hi @kushvatsa |
@iapicca no need, this comes from a past issue where I asked @kushvatsa to start a new one. This issue can be reproduced by the tests of the _web plugin. I'll get on this ASAP. Thanks! |
Thank for the clarification @ditman |
The current tests can reproduce this issue:
The error happens here. Investigating. |
This change ensures that the package:firestore Query objects are created with properly encoded values when done so from the start/end (pagination) methods. This also adds some Timestamps to the unit tests to verify the behavior of Timestamp -> DateTime. There are some integration tests in cloud_firestore that cover this behavior further. Fixes firebase#2153
…2166) This change ensures that the package:firestore Query objects are created with properly encoded values when done so from the start/end (pagination) methods. This also adds some Timestamps to the unit tests to verify the behavior of Timestamp -> DateTime in the web implementation. (There are some integration tests in cloud_firestore that cover this behavior further.) Fixes #2153 * [cloud_firestore_platform_interface] Fix 'equal_keys_in_map' lint (unrelated fix, but this change triggered an analysis in a sibling package)
Tagged and published cloud_firestore_web 0.1.1+2 with a fix for this issue. Please update your dependencies and let me know how it goes! |
It works @ditman , Thank you very much. 👍 |
Awesome, thanks for your patience! |
Hey @ditman , While doing pagination on flutter web, cloud firestore gives error
error-Invalid argument (dartObject): Could not convert: Instance of 'Timestamp'
The text was updated successfully, but these errors were encountered: