Back

[SOLVED] Google OAuth. Server error whenever any new user is signing up using google oauth

  • 2
  • Users
  • Flutter
  • Accounts
godfather
20 Mar, 2023, 16:12

This is the table

TL;DR
Google OAuth is causing a server error when new users sign up. The bug was fixed in a later version (0.15.3) of Appwrite. The issue was due to special characters in a user's name. Removing the characters resolved the problem. However, there is another issue where changes cannot be made to any user from the Appwrite console, and deleting users is also not possible. Rebooting the MariaDB instance did not resolve the issue. Restoring from a backup may fix any corrupted data. Rebuilding the index may take some time. To resolve the issue with the `_1_users` table, create a backup
Binyamin
20 Mar, 2023, 16:13

OK First create a backup of the table Then run

TypeScript
ALTER TABLE _1_users ENGINE=InnoDB;
Binyamin
20 Mar, 2023, 16:14

And check that everything are okay

godfather
20 Mar, 2023, 16:16

I already created backup of appwrite yesterday night and no users has been added as this error was their. So it must be fine? Where to run ALTER TABLE command?

Binyamin
20 Mar, 2023, 16:16

Open a query console

godfather
20 Mar, 2023, 16:20

It is loading since 2 mins

Binyamin
20 Mar, 2023, 16:20

The query or open the window?

godfather
20 Mar, 2023, 16:21
Binyamin
20 Mar, 2023, 16:22

Oh, It takes time, is the rebuild of the index process

godfather
20 Mar, 2023, 16:26

7 mins. How much time it generally takes, i have only 500 users data?

Binyamin
20 Mar, 2023, 16:26

Yeah It should finish already

Binyamin
20 Mar, 2023, 16:27

disconnect and retry (and something get corrupted just restore from backup)

godfather
20 Mar, 2023, 16:38

No luck. Same issue

Binyamin
20 Mar, 2023, 16:40

😦 I will suggest rebooting the MariaDB Instance ( docker compose down && docker compose up -d ) and try again

godfather
20 Mar, 2023, 16:45

Ok. One thing i notice is that i am not able to make any changes to any user from appwrite console! Neither I am able to delete

Binyamin
20 Mar, 2023, 16:46

The errors are all from the same origin the _1_users table

godfather
20 Mar, 2023, 16:53

I think I found out the issue. So one user has name "Suraj **" I removed stars and now the query run! have to check with logged in

Binyamin
20 Mar, 2023, 16:54

Cool!

godfather
20 Mar, 2023, 16:55

Damn! App is working now for new users πŸŽ‰ Thanks man thanks a lot πŸ™πŸ»

godfather
20 Mar, 2023, 16:55

So this is basically a bug. When anyone signs from google or other OAuth. Appwrite should remove all charcater except alphabet and spaces.

Binyamin
20 Mar, 2023, 16:56

What version is your appwrite?

godfather
20 Mar, 2023, 16:56

0.15.3

Binyamin
20 Mar, 2023, 16:56

So maybe it was fixed in later versions

godfather
20 Mar, 2023, 16:56

Yeah maybe.

joeyouss
24 Mar, 2023, 18:14

[SOLVED] Google OAuth. Server error whenever any new user is signing up using google oauth

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