![](https://cdn.discordapp.com/avatars/764810793376022528/27fc83582f162e4c2f01836144b94318.webp)
Traceback (most recent call last): File "/usr/local/server/src/function/runtime-env/lib/python3.9/site-packages/appwrite/client.py", line 100, in call response.raise_for_status() File "/usr/local/server/src/function/runtime-env/lib/python3.9/site-packages/requests/models.py", line 1021, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 409 Client Error: Conflict for url: https://cloud.appwrite.io/v1/databases/654232d47fca4f8eea13/collections/6555ffc479954d772227/documents
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/local/server/src/server.py", line 163, in action output = await asyncio.wait_for(execute(context), timeout=safeTimeout) File "/usr/local/lib/python3.9/asyncio/tasks.py", line 479, in wait_for return fut.result() File "/usr/local/server/src/server.py", line 156, in execute output = userModule.main(context) File "/usr/local/server/src/function/src/main.py", line 96, in main database.create_document(MASTER_DATABASE_ID, LEADERBOARD_COLLECTION_ID, ID.unique(), data={ File "/usr/local/server/src/function/runtime-env/lib/python3.9/site-packages/appwrite/services/databases.py", line 945, in create_document return self.client.call('post', api_path, { File "/usr/local/server/src/function/runtime-env/lib/python3.9/site-packages/appwrite/client.py", line 112, in call raise AppwriteException(response.json()['message'], response.status_code, response.json().get('type'), response.json()) appwrite.exception.AppwriteException: Document with the requested ID already exists. Try again with a different ID or use ID.unique() to generate a unique ID.
![](https://cdn.discordapp.com/avatars/796164927034359808/318b9f408f57114c9605b8d3b30fd499.webp)
If you run this again, does the same error happen?
![](https://cdn.discordapp.com/avatars/764810793376022528/27fc83582f162e4c2f01836144b94318.webp)
Nope
![](https://cdn.discordapp.com/avatars/764810793376022528/27fc83582f162e4c2f01836144b94318.webp)
I’ve got this once
![](https://cdn.discordapp.com/avatars/796164927034359808/318b9f408f57114c9605b8d3b30fd499.webp)
And you are using ID.unique()
, right?
![](https://cdn.discordapp.com/avatars/796164927034359808/318b9f408f57114c9605b8d3b30fd499.webp)
What version of the SDK are you using?
![](https://cdn.discordapp.com/avatars/764810793376022528/27fc83582f162e4c2f01836144b94318.webp)
Yeahh
![](https://cdn.discordapp.com/avatars/764810793376022528/27fc83582f162e4c2f01836144b94318.webp)
Cloud function
![](https://cdn.discordapp.com/avatars/764810793376022528/27fc83582f162e4c2f01836144b94318.webp)
Python sdk
![](https://cdn.discordapp.com/avatars/796164927034359808/318b9f408f57114c9605b8d3b30fd499.webp)
What version of the SDK are you using?
Recommended threads
- How to generate a database-setup script ...
I've written a vue.js webapp with appwrite-cloud-db (including relations) and everything works just perfectly! Now I want to release this webapp as an open sou...
- Private identifiers are only available w...
Hello folks, hope you all doing fine. Have any of you faced the error below? ```sh node_modules/node-appwrite/dist/id.d.ts:2:5 - error TS18028: Private iden...
- Returning specific attributes with Graph...
I'm trying to use the GraphQL API to return a single attribute along with the _id, rather than the entire document. According to the documentation, the followin...
![](/images/bgs/pre-footer.png)