
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
- I am receiving an Error 400 Invalid `suc...
Hi, I am an armature trying to set up a Google Sign-in button and authentication with some scopes. However, I don't understand why I can't redirect the button t...
- AppwriteException: Server Error
code: 500, type: 'general_unknown', response: { message: 'Server Error', code: 500, type: 'general_unknown', version: '1.6.1' }
- One-to-many relationship - way to quickl...
Title probably makes no sense - sorry. But I'm trying to create a database for buildings with units. Eight buildings each with eight units. So I made a buildin...
