Back

Account.Create produces an exception

  • 0
  • Flutter
ptrk6182
5 Jan, 2025, 12:39

Hi there! I just started with appwrite. I use a selfhosted solution using docker.

Yesterday i created a simple signup page in my app and got an exception after account.create. The account will be created an the appwrite side.

The exception raises in appwrite/src/models/target.dart .. there is a function Target.fromMap

in the line expired: map['expired'], is the error. The problem is, that map did not contains the key "expired". Any idea what i can try or do to fix my problem?

TL;DR
Issue: Exception raised after Account.Create in appwrite self-hosted solution using Docker. Exception in Target.fromMap function due to missing key 'expired' in map. Solution: Modify the function Target.fromMap in appwrite/src/models/target.dart to handle cases where 'expired' key is missing in the map.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more