Back

Github integration for functions is failing

  • 0
  • Tools
  • Accounts
  • Cloud
  • Users
  • Functions
codeMechanic
18 Dec, 2023, 13:58

Hello, I am trying to appwrite functions & as part of it when i integrate(login to github & give access to specific repo) with github on redirection I keep getting below 409

Error 409 A user with the same email already exists in the current project.

Type user_email_already_exists

what I tried:

  1. revoking appwrite permissions on github
  2. uninstall appwrite github app multiple time .

Note: I tried integrating this repo on diff appwrite test account & then everything went well. When I am trying to bring this into our main account this issue keep on happening. Any help here is really appreciated.

TL;DR
The user is experiencing a failure in Github integration for functions after deleting an account. They have tried cleaning up Appwrite permissions on Github and deleting the App installation on Github, but are still facing the issue. They also tried deleting another Appwrite account linked to the Github account, but that didn't help. The user asked if the issue could be related to a SSO token from the previous account. They confirmed they are using the correct project and checked for identities using the CLI command, but found none. The user is getting a 409 error stating that a user with the same email already exists in the current project. They have tried rev
ideclon
18 Dec, 2023, 16:05

Try running appwrite account listIdentities in CLI. Do you see an Identity with that email address?

codeMechanic
18 Dec, 2023, 16:18

Thanks for your reply. When I run that command, i see 0 identities. appwrite account listIdentities total : 0 identities [] ✓ Success

ideclon
18 Dec, 2023, 16:40

Just checking you definitely have the CLI in the correct project?

codeMechanic
18 Dec, 2023, 16:48

I double checked that & sure I am on correct project. I can see projectId in redirection url (url that brings back to appwrite after github permissions are set )as well.

Drake
21 Dec, 2023, 00:23

Is this on Appwrite Cloud?

codeMechanic
21 Dec, 2023, 03:25

yes it is cloud version

Drake
21 Dec, 2023, 03:26

Do you have multiple accounts on cloud?

codeMechanic
22 Dec, 2023, 01:54

Yes , I did connected this repo to POC account(SSO With github account) & then tried to bring it into new account.

Before I tried attaching github into new account

  1. i clean up appwrite permissions on github,
  2. deleted app installed on github

After that i tried to relink it with new account that is created based on email . That is when i am facing this issue.

Is it possible that POC account created with Github account has a sso token that is trying to interfere with new linki g ?

I trieddeleting POC account altogether but that also didnt helped.

Any help here is highly appreciated.

Thanks in advance !!!

Drake
22 Dec, 2023, 02:00

Yes, the GitHub account is probably linked to your other Appwrite account...you probably shouldn't have deleted your other account...

codeMechanic
22 Dec, 2023, 02:03

I realized that now after deleting.

Now when i am trying to recreate account using github account, i keep getting failure.

Is there any way i can come out of this ?

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