I am facing this error: type 'Null' is not a subtype of type 'int'
- 0
- Self Hosted
- Flutter
- Databases

When attempting to fetch areas from the area collection, the application throws an error: "type 'Null' is not a subtype of type 'int.'" This issue originates in the AreaModel.fromJson constructor, indicating that expected integer fields are receiving null values.
Environment:
Both the SDK and the self-hosted Appwrite server are running on the latest versions.
I encountered the same problem earlier in the day when fetching data from the server, which was resolved by downgrading the Appwrite SDK to version 16.1.0. However, again, this issue has emerged in the functionality related to fetching areas.
Any help would be appreciated!
Recommended threads
- Adding Domain to Sites [Self Hosted]
I am struggling to get this working. I stood-up a new server and deployed appwrite 1.7.4. I added update .env file _APP_DOMAIN=appwrite.mydomain.com _APP_DOMAI...
- Need help migrating from self hosted to ...
Hi! I am using self hosted appwrite for testing stuff out and now it's prod ready I want to deplot it to the cloud version. It gave me this error when fetchin...
- #support
<#1072905050399191082> any help on that?
