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
- Paused project can't activate
I have failed to reactivate one my projects which had been paused
- after using the coding agents its code b...
can anybody suggest me an ai tool that i can use to create the system desgins without the suggestion things because it at last create a mess
- Inquiry: How to Reduce Cold Start Durati...
Hey! I was using Python for the function runtime, but after reading that Go has the fastest runtime, I switched my code over to Go. However, I'm still seeing co...