When I try to delete a document from the users database I have, I just get an error which says Server Error. Here are the logs from the console.
DELETE https://appwrite.poena.wilkin.studio/v1/databases/653e3784a84b4c91b0fb/collections/653e37db43cec6d3371a/documents/653e7be5d85da3f14bd8 500 (Internal Server Error)
How can I force delete it?
Summary
The user encountered a server error while trying to delete a document from their database collection. They have shared logs from the console that indicate an internal server error when making the delete request. The URL of the failed request is provided.
Solution: There is no specific solution mentioned in the thread. However, the user could try the following troubleshooting steps:
1. Check if the document being deleted already exists or has been deleted.
2. Verify if there are any issues with the relationship fields in use.
3. Share the query used to delete the document for further analysis.
4. If running Appwrite in Docker, make sure it is properly configured
Ryan
Moderator
Oct 30, 2023, 09:53
Do you have any logs from the Appwrite server? You should be able to get more detailed logs that can help us to figure out what's happening
LKW
Web Developer
Oct 30, 2023, 10:10
How can I get the logs?
Ryan
Moderator
Oct 30, 2023, 10:11
Are you running Appwrite in Docker?
LKW
Web Developer
Oct 30, 2023, 10:16
I don't think so - I'm just running it on the Appwrite Cloud Beta
LKW
Web Developer
Oct 30, 2023, 10:16
I access it through cloud.appwrite.io
Ryan
Moderator
Oct 30, 2023, 10:20
Ah right okay, are you able to share the query that you are using to delete the document?
LKW
Web Developer
Oct 30, 2023, 10:23
LKW
Web Developer
Oct 30, 2023, 10:23
Thanks for helping!
Ryan
Moderator
Oct 30, 2023, 10:26
This looks like it could be an issue with the relationship fields that you're using, do the documents that are in the relationship fields still exist or have they been deleted already?
LKW
Web Developer
Oct 30, 2023, 10:32
I think they already exist - but some have been deleted
LKW
Web Developer
Oct 30, 2023, 10:32
Is it an issue where when it's trying to delete something that's already been deleted?
Ryan
Moderator
Oct 30, 2023, 10:33
That's what it's looking like to me but I'm not 100% sure. Are you able to paste the URL that the failed request is going to? It'll give us an idea as to which collection and document it's having a problem with
LKW
Web Developer
Oct 30, 2023, 10:35
Hey @Ryan it must be you - it's deleting now
LKW
Web Developer
Oct 30, 2023, 10:35
how weird
LKW
Web Developer
Oct 30, 2023, 10:35
i mean, you saw it failing, but it's working now!
LKW
Web Developer
Oct 30, 2023, 10:36
thanks - i guess?
Ryan
Moderator
Oct 30, 2023, 10:36
Yeah, it could have been an outage on the cloud beta, but I guess if it's working now then great!