Skip to content
Back

general_argument_invalid, Param "email" is not optional

  • 0
  • Self Hosted
  • Auth
  • Flutter
showmore
8 Oct, 2025, 01:47

[ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: AppwriteException: general_argument_invalid, Param "email" is not optional. (400) E/flutter ( 4892): #0 ClientMixin.prepareResponse (package:appwrite/src/client_mixin.dart:90:9) final token = await account.createPhoneToken( userId: ID.unique(), phone: phone ); print(token); createPhoneToken() method why email ? #2 updatePhoneSession is outdated ? any option to replace

TL;DR
Error 'general_argument_invalid' is received in AppwriteException due to 'email' parameter not being optional. The createPhoneToken() method requires 'email', which might be outdated. Consider updating the 'updatePhoneSession' method or finding a suitable replacement.
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