Back

There was an error processing your request. Please check the inputs and try again. (400)

  • 0
  • Flutter
  • Auth
  • Cloud
Saurabh
5 May, 2024, 10:32

while registering user

appwrite sdk version : 12.0.3 in dart using cloud

suddenly stops working

try { final res = await AppwriteConfig.account.createOAuth2Session( provider: OAuthProvider.google, scopes: ['email', 'profile']);

this is the code for google auth

TL;DR
Developers are encountering a 400 error when trying to process a request using Google OAuth in the Appwrite cloud console. The error message asks to check inputs and try again. To resolve this issue, try omitting unnecessary scopes in the code using Flutter SDK version 12.0.3.
D5
5 May, 2024, 10:42

Are you using the dart SDK or the flutter SDK?

Saurabh
5 May, 2024, 10:44

flutter sdk appwrite: ^12.0.3

D5
5 May, 2024, 10:47

Such scopes are really needed? Try omitting them

Saurabh
5 May, 2024, 10:48

ok

Saurabh
5 May, 2024, 10:52

same error after removing them

D5
5 May, 2024, 10:53

At what point you're getting this error?

Saurabh
5 May, 2024, 10:54

after redirecting to cloud.appwrite.io

Saurabh
5 May, 2024, 10:57

before redirecting

D5
5 May, 2024, 10:57

Ok. Do you have set everything in the appwrite cloud console (enabled Google oauth and set it?)

Saurabh
5 May, 2024, 10:57

yes

Saurabh
5 May, 2024, 10:57
D5
5 May, 2024, 10:59

In the Google cloud platform, the URL set is the one specified in the popup that opens after clicking the google section in the creenshot you sent?

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