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.
If you run this again, does the same error happen?
Nope
Iβve got this once
And you are using ID.unique()
, right?
What version of the SDK are you using?
Yeahh
Cloud function
Python sdk
What version of the SDK are you using?
Recommended threads
- Applying free credits on Github Student ...
So this post is kind of related to my old post where i was charged 15usd by mistake. This happens when you are trying to apply free credits you got from somewh...
- Attributes Confusion
```import 'package:appwrite/models.dart'; class OrdersModel { String id, email, name, phone, status, user_id, address; int discount, total, created_at; L...
- Update User Error
```ts const { users, databases } = await createAdminClient(); const session = await getLoggedInUser(); const user = await users.get(session.$id); if (!use...