Back

`✗ Error fetch failed` on `appwrite deploy collection`

  • 0
  • Self Hosted
  • Tools
ideclon
1 Apr, 2024, 16:13

When I run appwrite deploy collection, the majority of the time, the deployment doesn't complete, and fails with ✗ Error fetch failed. This happens in any project, with any appwrite.json file, whether the database already exists or not. Nothing shows up in the logs when this happens.

Sometimes it happens earlier, sometimes later - so usually some of the Collections/Attributes are created, but how many is different each time - sometimes it fails right at the start and nothing gets created at all, sometimes it fails before deleting the current database (if it already exists), and sometimes after.

If I run it a bunch of times in a row, the result is different each time.

TL;DR
Issue: `✗ Error fetch failed` occurs inconsistently when running `appwrite deploy collection`. Possible reasons for the error could be timing-related issues causing the deployment to fail. The error may be occurring randomly at different stages of the deployment process, resulting in incomplete creation of Collections/Attributes. Solution: The best approach is to troubleshoot by running the deployment command multiple times to identify patterns in the failure. Check for any timing-related inconsistencies and ensure that the order of operations is correct. Additionally, monitor the logs for any specific errors or warnings that could provide more insight into the root cause of the issue.
ideclon
1 Apr, 2024, 16:31

My guess is that something is happening out of order

ideclon
1 Apr, 2024, 16:57

Or is taking too long to complete

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more