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
- Need help with createExecution function
Hi, Need some help understanding createExecution. When requesting function execution via createExecution, the function handler arguments are incorrect and rese...
- Need Help with Google OAuth2 in Expo usi...
I'm learning React Native with Expo and trying to set up Google OAuth2 with Appwrite. I couldn't find any good docs or tutorials for this and my own attempt did...
- Got message for auto payment of 15usd fo...
how did this happen? 1. i claimed my 50usd credits via jsm hackathon - https://hackathon.jsmastery.pro/ 2. it asked me which org. to apply the credits on, i se...