Skip to content
Back

Storage images using custom domain return 404 for my project ID

  • 0
  • Storage
  • Cloud
hen
20 Feb, 2026, 08:54

Some of the images uploaded to my storage bucket returns this error:

TypeScript
{
"message": "Project with the requested ID could not be found. Please check the value of the X-Appwrite-Project header to ensure the correct project ID is being used.",
"code": 404,
"type": "project_not_found",
"version": "1.8.1"
}

Where the project exists. After using the same url but https://fra.cloud.appwrite.io/ instead of my custom domain, it works for all images. I have not changed anything in my setup for months and it was working previously with our custom domain without any issues.

TL;DR
Issue: Images stored using a custom domain are returning a 404 error with "Project with the requested ID could not be found" message, even though the project exists. Switching to the default domain works fine. No recent changes in setup. Solution: Check the X-Appwrite-Project header value with the correct project ID for the custom domain. Update if necessary.
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