Skip to content
Back

general_argument_invalid, Param "email" is not optional

  • 0
  • 2
  • 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
The error "general_argument_invalid" is shown due to the email parameter not being optional. Ensure SDK and Appwrite versions match. You may need to update SDK or downgrade Appwrite versions to resolve.
8 Oct, 2025, 02:34

Maybe you're already logged in

9 Oct, 2025, 06:16

<@462046107556511744> can you please explain more, what does loggedin mean? I am running appwrite in my docker older version, but i am using for flutter latest version appwrite: ^20.0.0

9 Oct, 2025, 06:26

i am using appwrite v1.2.1, in local self host for now

9 Oct, 2025, 16:07

you cannot use a new SDK against an old version of Appwrite. look at the readme of the SDK

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