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
- Scheduled cloud function
As I understood it is possible to create a function execution from the server sdk with an ISO date as the time. Am I wrong to assume that this will execute the ...
- Get File Preview or Download File?
Hey, I have a feed on my app and I wondered which option from above is smarter and which are the perks of each one.
- (Self-Hosted) Dart function deployment b...
Hello everyone, I am currently trying to deploy a dart function on my Appwrite instance (v1.5.7). Due to the need of a corporate certificate to download depende...