Back

Help Please Account.Create() results in an exception in DotNet.

  • 0
  • Self Hosted
Anabil
11 Feb, 2025, 16:43

When I try to create a new user with the following code await _account.Create(userId: "unique()", email: email, password: password);

It hit an exception which says System.Collections.Generic.KeyNotFoundException: 'The given key 'expired' was not present in the dictionary.'

There is no dictionary on my side. It has to be Appwrite internal issue. Please help. Account gets created but no User object is returned.

TL;DR
Developers facing exception when trying to create a new user using Account.Create(). Exception message: `'The given key 'expired' was not present in the dictionary.'`. No dictionary on user's side, likely Appwrite internal issue. User account gets created but no User object returned.
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