
I'm at a complete loss here just trying to create a Function on AppWrite Cloud. No matter what I try, I'm getting this error:
# Error 409
Document with the requested ID already exists. Try again with a different ID or use ID.unique() to generate a unique ID.
Type
`document_already_exists`
Here are the steps I'm doing:
- Login to AppWrite Cloud using my GitHub account
- Click on my Organization's Project/App
- Click "Functions"
- Click "Create Function"
- Under Quick start, click Python
- Leave Name/Runtime default (Starter Function / Python - 3.9), click Next
- Supply no optional variables, click Next
- At this point it doesn't matter which option I select, either create a new repo, or add to an existing. I've tried both.
- Click GitHub
- Select the correct Organization when asked where I want to install AppWrite
- Install & Authorize, it doesn't matter if I select All repos, or Only select repos, it results in the same issue.
- Click Install & Authorize
At this point I'm redirected back to cloud.appwrite.io with the above error. I've uninstalled AppWrite through GitHub and tried multiple times. I'm at a complete loss, what am I doing wrong here?
This is the function I'm trying to get setup: https://github.com/appwrite/templates/tree/main/python/starter
I'm just trying to get the Starter Function running. Any ideas what's wrong? Thanks.

Oh wow! I was able to get it working. I remember seeing support posts about people changing their GitHub email address after signing up with AppWrite using their account, which is something I recently did.
So to make sure this wasn't some how related, I did these steps:
- Logged into GitHub and uninstalled AppWrite from my Organization
- Login to AppWrite using my GitHub account
- Under "Your Account" I set up an email/password
- I removed my GitHub Identity
- Logged out
- Logged back in with my new email/password
- Tried the steps again from my original post, and it all worked.
I'm not sure what happened, or why document_already_exists
is the error I was getting, but oh well. I'm pretty sure I could switch back to using GitHub to login now that my GitHub Organization and repo are connected to AppWrite cloud, but I'm just going to stick with my mail/password login.
Phew, I hope this helps someone else in the future.
Recommended threads
- Unable to add permission when creating a...
I am creating a collection from a cloud function using the Appwrite Dart server SDK, and I want to add permissions so it can be accessed by users. I added code ...
- Resource limit on the free plan
I'm currently building a health-focused tech project as part of a student initiative, and I’ve been using Appwrite extensively for backend services. As part o...
- Google Sign In Long Delay From Yesterday
I am using google sign auth provider. everything was working as expected without any issue. But from yesterday, it takes too much time to login and some time fo...
