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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Bug Report: createFloatAttribute() 'AppwriteException: Invalid min: Value must be a valid float (400)' #17

Closed
2 tasks done
sbergmair opened this issue Feb 16, 2022 · 1 comment
Labels
bug Something isn't working waiting for release

Comments

@sbergmair
Copy link

sbergmair commented Feb 16, 2022

馃憻 Reproduction steps

  1. Create collection via interface in appwrite console and add an float attribute without min and max
  2. Copy the json
  3. Call AttributeFloat.fromMap(json) (Bug 馃悰 Bug Report: createFloatAttribute() 'toDouble' was called on null.聽#16 needs to be fixed), but simple workaround is adding xdefault: map['default']?.toDouble() in AttributeFloat.fromMap
  4. call database.createFloatAttribute(collectionId: <the_collection_id>, key: attributeFloat.key, xrequired: attributeFloat.xrequired, min: attributeFloat.min.toString(), max: attributeFloat.max.toString(), xdefault: attributeFloat.xdefault.toString(), array: attributeFloat.array);

馃憤 Expected behavior

Creating the correct attribute with min and max values

馃憥 Actual Behavior

AppwriteException: Invalid min: Value must be a valid float (400)
Attribute doesn't get created correctly

馃幉 Appwrite version

Version 0.12.1.201

馃捇 Operating system

Linux

馃П Your Environment

馃憖 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

馃彚 Have you read the Code of Conduct?

@lohanidamodar
Copy link
Member

Should be fixed on dart_appwrite: 4.0.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working waiting for release
Projects
None yet
Development

No branches or pull requests

2 participants