Troubleshooting image transformation and delivery errors
Last updated: Nov-11-2026
When a transformation or delivery URL fails, Cloudinary returns an HTTP 40X status and often adds detail in the X-Cld-Error response header. Common causes include invalid syntax (such as w_abc instead of w_300), transformation options that conflict, features that aren't enabled for your product environment, access rules that block the request, and assets or overlays that don't exist.
This page explains how to read those signals, why some errors keep appearing after you fix the underlying issue (CDN caching), and what each common X-Cld-Error message means, with fixes, for 400, 401, 404, and 423 responses. For video-specific errors, see Troubleshooting video transformation errors.
For a walkthrough, see the Diagnosing error codes video tutorial. For complex cases, contact Cloudinary support.
How to diagnose delivery errors
X-Cld-Error header
When Cloudinary can't deliver an asset as requested (or returns a substitute such as the default image placeholder), the response may include an X-Cld-Error HTTP header with a more specific reason.
You can inspect X-Cld-Error headers with your browser's developer tools. For step-by-step instructions on how to do this in different browsers, see How to inspect errors manually.
See also:
- Introducing the X-Cld-Error header video tutorial
- Alternative error responses to return error details in a JSON or HTML body, or serve a fallback image instead
X-Cld-Error inspector tool
Use the tool below to inspect the X-Cld-Error header for a Cloudinary image URL. Paste the transformation URL and choose Inspect Headers.
Request Failed: Failed to fetch / NetworkError
-
Cause: This message comes from the inspector tool itself, not from Cloudinary. Your browser couldn't read the response, so the tool has no status code or headers to show. The wording depends on your browser, for example
Failed to fetchin Chrome orNetworkError when attempting to fetch resourcein Firefox. Common causes are a network problem, a CORS restriction, a browser extension (such as an ad blocker) blocking the request, or a URL that isn't served by Cloudinary (such as a custom domain or proxy that doesn't return CORS headers). -
What to do: Check the response another way:
- Open the URL in a new tab and look at the request in the Network tab of your browser's developer tools. See How to inspect errors manually.
- Request only the headers from the command line, for example
curl -I "<your URL>", and look for the x-cld-error line.
HTTP Error: no X-Cld-Error header was found
-
Cause: The URL returned an error status code, but the response didn't include an
X-Cld-Errorheader. This can happen when the error comes from somewhere other than Cloudinary's delivery service, such as a proxy or custom domain in front of Cloudinary. - What to do: Use the status code shown in the result to find the matching section below, for example 400 Bad Request, 401 Unauthorized, or 404 Not Found.
HTTP status codes
The HTTP status (400, 401, 404, etc.) summarizes the outcome; X-Cld-Error (when present) narrows down the cause. The sections below are grouped by status code, with subsections for typical situations and for specific X-Cld-Error strings.
How to inspect errors manually
If the tool above fails to retrieve headers, you can inspect the X-Cld-Error header manually using your browser's Developer Tools:
Chrome / Edge
- Open Developer Tools (View > Developer > Developer Tools, or press F12)
- Click the Network tab
- Reload the page or navigate to the Cloudinary URL
- Find the request in the network list
- Click on it to view details
- Look for X-Cld-Error under the Response Headers section
Firefox
- Open Developer Tools (Tools > Browser Tools > Web Developer Tools, or press F12)
- Click the Network tab
- Reload the page or navigate to the Cloudinary URL
- Find the request and click on it
- Click the Headers tab
- Look for X-Cld-Error under Response Headers
Safari
- Enable Developer menu (Preferences > Advanced > Show Develop menu)
- Open Web Inspector (Develop > Show Web Inspector, or press Cmd+Option+I)
- Click the Network tab
- Reload the page or navigate to the Cloudinary URL
- Select the request
- Look for X-Cld-Error in the response headers
Cached 40X responses at the CDN
Cloudinary caches 40X error responses at the CDN per exact URL, using exponential backoff:
- The first cached 40X for a given URL lasts 1 minute.
- After that entry expires, if the same URL is requested and still fails, the next cached 40X lasts twice as long as the previous period (2 minutes, 4 minutes, 8 minutes, and so on), up to a maximum of 24 hours per cache segment.
- After that maximum, repeated failures can keep the error cached in 24-hour increments.
You see this most often as 404 on a transformation URL when the original asset wasn't in your cloud when you first tried to deliver the URL, or when the public_id specified in the URL doesn't match what you later uploaded.
Upload and delivery often run in different places. For example, one service uploads while another app or job only builds or loads transformation URLs. Those paths don't always finish in the same order, so a transformation URL can be requested before the asset exists.
In this case, the CDN may respond with a 40X (often 404) and cache that error response. Due to this caching, the URL can continue failing for a while even after the upload completes.
If you get a 40X (such as 404) and you've validated that the asset is in your cloud, a cached error for that exact URL is a likely explanation, especially if other transformation URLs for the same asset work.
\a_0\ to the failing URL. If that variant works while the original URL still fails, you are probably seeing a cached error response.Reduce or recover from cached errors
Prevent the issue: Upload the original (or apply the final public_id) before any code requests transformed URLs for that asset, so the first CDN hit isn't an error.
Work around an error that's already cached:
- Add the asset's version to the URL after upload so the URL string changes and isn't the cached failure.
- Use different transformation parameters or change the order of transformations so the URL isn't identical to the cached one.
- Use a default image placeholder (
default_image/din URLs) so delivery doesn't return a bare 404 while the asset is missing or while a cached error is still in effect. - Invalidate the broken cached version so the new version can be immediately delivered instead
- When renaming a public ID programmatically to one that is currently returning a cached 404, include the invalidate parameter in the
renamerequest - If the asset you want to deliver already exists with the same public ID as one currently returning a cached 404 (for example, if you uploaded a new version of the asset without applying invalidate during the upload), use Explicit with the
invalidateparameter set totrue.
- When renaming a public ID programmatically to one that is currently returning a cached 404, include the invalidate parameter in the
Explicit or Rename with invalidation quickly using the Asset Management MCP server, the Cloudinary Postman collection, or the CLI.In general, when replacing an image with the same public_id: Upload with overwrite: true and invalidate: true so CDN copies of the old file and its derivatives are cleared. For example:
400 Bad Request
400 usually means the URL or transformation is invalid, malformed, or not allowed in the way it was requested. For example, it can mean unknown transformation parameters or values (such as invalid tokens or w_0), or syntactically valid options that conflict (such as g_auto with a crop mode that doesn't support it).
Wrong URL structure also yields 400, for example if cloud_name appears after resource_type / type in the wrong place, or if transformation segments are embedded inside the public_id. See Transformation URL structure.
The subsections below describe frequent X-Cld-Error patterns for 400 and how to fix them.
Unknown or invalid referenced image <public_id> of type upload
- Cause: Cloudinary can't find the referenced image (e.g. in overlays or other references).
-
What to do:
- Confirm the public_id and that the resource still exists; fix any broken references in the request.
- If the public_id contains slashes (e.g.
animals/dog), use colons in overlay references (e.g.animals:dog).
Error in loading - <remote source URL>
-
Cause: With fetch delivery, Cloudinary couldn't retrieve the remote file.
X-Cld-Erroris oftenError in loading <URL> - <HTTP status from the remote>; Cloudinary returns 400 for that case. If the remote returns 404, Cloudinary more often returns 404 withResource not found - <URL>instead. Causes include network issues, blocking, or the origin being down. - What to do: Verify the URL; confirm the origin is up and reachable from the public internet; rule out access or rate limits on the remote.
Invalid transformation
- Cause: The transformation parameter or value is invalid, or the URL is malformed relative to supported syntax.
- What to do: Align parameters and values with the transformation reference and fix URL structure.
Invalid <parameter> in transformation: <value>
-
Cause: A transformation parameter has a value Cloudinary doesn't accept. Unlike the generic
Invalid transformationmessage, this one names the parameter and the value it rejected. For example:-
Invalid width in transformation: abcfor a non-numeric width such asw_abc -
Invalid effect in transformation: blurrfor a misspelled effect name such ase_blurr -
Invalid crop_mode in transformation: crop_fillfor an unknown crop mode such asc_crop_fill
-
- What to do: Look up the named parameter in the transformation reference and correct the value. If the parameter shown isn't one you used, a folder name in the public ID may be read as a transformation: see Invalid transformation parameter - <prefix> below.
Invalid transformation parameter - <prefix> (folder name read as a transformation)
This error is misleading, because the problem is usually the folder path, not a transformation. It reports only the characters before the underscore, so the folder name it objects to doesn't appear in the message.
-
Cause: A path element in the public ID starts with 1-3 characters followed by an underscore, such as
my_pathorabc_folder. Cloudinary reads URL components in that shape as a transformation component, because that's what transformation parameters look like (w_300,c_fill,t_preset), so it tries to parse the folder name as a parameter and rejects it. Delivering.../image/upload/my_path/sample.jpgreturns 400 withInvalid transformation parameter - my. -
What to do:
- Separate the last transformation component from the path element with a version component, for example
.../image/upload/t_transf1/t_transf2/v1/my_path/sample.jpg. A version on its own isn't enough:.../image/upload/v1/my_path/sample.jpgstill fails, because there's no transformation component for the version to separate the path from. - When creating assets, avoid public ID path elements in this shape. See the notes under including a path in the public ID for the full recommendation.
- Separate the last transformation component from the path element with a version component, for example
a_x reports Invalid angle in transformation: x, because a is the angle parameter and Cloudinary validates the rest of the folder name as its value.long_path or abcd_folder deliver normally.Invalid encoding in transformation
-
Cause: A text overlay contains a character that needs four bytes in UTF-8, such as an emoji, and the URL passes those bytes through only one round of percent-encoding. Emojis sit above the Basic Multilingual Plane, so a character such as 👋 is
%F0%9F%91%8Bwhen encoded once, and Cloudinary rejects the transformation withInvalid encoding in transformation. Characters that need one to three bytes, such as é (%C3%A9) or ✓ (%E2%9C%93), are unaffected and work whether they're encoded once or twice. -
What to do: Percent-encode the
%signs themselves, so each byte reaches Cloudinary as%25followed by its hex value: 👋 becomes%25F0%259F%2591%258B. That clears this error, but see the note below before using emojis in a text overlay.
Failed rendering text, because none of the supported fonts include emoji glyphs (and emoji-specific families such as Noto Color Emoji aren't supported). Double-encoding is therefore not a fix for emojis: it moves you from one error to another. To show an emoji, deliver it as an image overlay using an uploaded emoji graphic instead of a text overlay.Non-emoji four-byte characters, such as the musical symbol 𝄞 (%25F0%259D%2584%259E), do render once double-encoded.
$name, often pass through an extra encoding step downstream, which changes how many rounds of encoding you need to apply yourself. Test the overlay in isolation first: open a minimal URL containing just the l_text layer directly in a browser, confirm it works, then add it back into the full URL.Failed rendering text
- Cause: The text overlay was decoded successfully, but Cloudinary couldn't render it with the requested font. The most common cause is a character with no glyph in that font, such as an emoji (see Invalid encoding in transformation above).
-
What to do: Check that every character in the overlay exists in the chosen font, using the supported fonts list. For emojis, use an image overlay instead. Note this is a different problem from
Unsupported font family, which means the font name itself isn't recognized.
Auto gravity can only be used with crop, fill, thumb, lfill
- Cause: g_auto is used with a resize mode that isn't a supported cropping mode (e.g. scale or fit).
- What to do: Use g_auto only with compatible modes (crop, fill, lfill, fill_pad, thumb, etc.), or remove g_auto if you need an incompatible mode.
For videos, the messages are different: g_auto only supports fill,fill_pad for an unsupported crop mode, and g_auto must be in a transformation component by itself when other parameters share the crop component. See Video transformation errors.
public_id is too long
- Cause: For fetch delivery, the remote URL becomes the public_id. public_id length is limited (commonly 255 characters unless Cloudinary extends it for your account). Invalid transformation segments can be parsed as part of the public_id and trigger the same message.
- What to do: Upload from the remote URL via the API, use upload mapping, or ask support about a higher limit.
public_id (<value>) is invalid
-
Cause: The part of the URL that Cloudinary reads as the public_id isn't a valid public ID. The message shows the value it rejected, for example
public_id (/) is invalidwhen only a slash is left, which can happen if the public ID is missing, the URL has an extra or trailing slash, or a URL builder inserted an empty value. - What to do: Check that the URL ends with the full public ID (and extension, if you use one) after the transformation and version components, with no empty path segments. If the URL is generated, confirm the variable that holds the public ID isn't empty.
Maximum image size is <n> Megapixels. Requested <n> Megapixels
- Cause: The source image exceeds the megapixel limit for transformation processing on your plan. The limit applies to the image being processed, not to the delivered output, so requesting a small output size doesn't avoid it on its own.
- What to do: Make a resize the first action in the transformation chain, so later actions run on the smaller image. If the original is consistently oversized, resize it on upload with an incoming transformation, or contact support about a higher limit.
The image is too large to process. Please make sure the first action resizes the image to smaller dimensions
- Cause: The source image is too large for the transformation to run on it as requested. As with the megapixel limit above, the limit applies to the image being processed, so the size of the delivered output doesn't matter if the resize comes later in the chain.
-
What to do: Follow the message: put a resize, such as
c_limit,w_2000, in the first transformation component, and chain the other actions after it. If the original is consistently oversized, resize it on upload with an incoming transformation. For the equivalent video message, see Video too large for on-the-fly processing in the video transformation errors guide.
File size too large. Got <n>. Maximum is <n>
- Cause: The file exceeds the size limit for transformation processing on your plan. The limit applies to the file being processed, not to the delivered output.
- What to do: Deliver a smaller original, or reduce the file before transforming it, for example by resizing it on upload with an incoming transformation. Contact support if you need the limit raised. For videos, see Video too large for on-the-fly processing in the video transformation errors guide.
Rate Limit Exceeded. Limit of <n> <add-on> operations reached
- Cause: You've used up the allowance for an add-on, such as an AI-based effect, for the current period. The message names the add-on and the date to try again. Add-on quotas follow your account's billing cycle rather than the rolling 30-day window used for transformations and bandwidth, so the allowance resets on your renewal date, not on a rolling basis. If you subscribe partway through a billing period, that period's quota is prorated.
- What to do: Wait for the reset, or upgrade the add-on allocation in your Console. Each distinct transformation URL counts as one operation against the allowance, so check whether the same result is being requested under URLs that differ only slightly, for example through varying parameter order or unnecessary parameters. Keeping the URL stable means the derived asset is reused instead of generating a new operation.
401 Unauthorized
401 means delivery was blocked by an access rule: Strict transformations without an allowed/signed derived, restricted features in the product environment (Security), private or authenticated assets without a valid signed URL or token, or similar controls.
Transformation <transformation> is not allowed
-
Cause: Strict transformations are enabled, and the requested transformation hasn't been allowed and isn't signed. The message names the transformation, for example
Transformation f_auto/q_auto is not allowed. Each distinct transformation string counts separately, so allowingq_auto/f_autodoesn't allowf_auto/q_auto. -
What to do: Use one of the ways strict transformations permit a transformation:
- Toggle Allowed for strict transformations for the exact transformation, as described in Define allowed transformations.
- Deliver a signed URL.
- Generate the derived asset ahead of time with an eager transformation.
- If you use
f_auto, see Using automatic format in strict transformations.
ACL deny
-
Cause: Cloudinary returns 401 with
ACL denyinX-Cld-Errorwhen ACL rules, fetch allowlists, or related policies block the request. Other denials (e.g. token-based access or PDF / archive restrictions on free plans) can produce similar 401 responses; the exactX-Cld-Errortext may differ. -
What to do:
- Review ACL dimensions you configured (country, IP, path, content-type, referrer, user-agent)
- For a fetch URL, check that the remote URL's domain is on your fetch allowlist. Any other domain returns this error. Add the domain under Allowed fetch domains on the Security page of your Console Settings, as described in Restricting the allowed fetch domains, or fetch from a domain that's already allowed
- For token-based or cookie-based access, work through Troubleshooting a rejected token, which lists the mistakes that produce this error, including a token whose
aclparameter, expiry, IP, or signing key is wrong - For free-plan PDF/archives, see the Media delivery guide; contact support if needed
Unauthenticated access
-
Cause: The URL requires a signature or token, and the one provided doesn't match the URL. This often happens when a signed URL is edited after signing. For authenticated assets, the signature covers both the public ID and the transformations, so adding or changing a transformation parameter, for example adding
fl_no_streamto a video, invalidates it. Authenticated assets always require a signature or token, even after the derived asset is generated. - What to do: Generate the signature or token from the final delivery URL, including all its transformation parameters. To add a transformation parameter to a working URL, sign the new URL.
<type> of type <media type> are restricted in this account
-
Cause: Delivery of that media type is restricted in your product environment, one of the restricted features that produce a 401. For example,
Resources of type list are restricted in this accountfor the list delivery type, orImages of type fetch are restricted in this accountfor fetch delivery. - What to do: Open the Security page in your Console Settings and clear the relevant item under Restricted media types. For the list delivery type, clear Resource list under Restricted image types, as described in Delivering asset lists. You may prefer to clear these only temporarily, as needed. Alternatively, bypass any delivery type restriction with a signed URL.
<cloud_name> cannot be accessed via this endpoint
-
Cause: The cloud name in the URL doesn't match the endpoint being used, for example a mismatched or misspelled cloud name, or a URL built for a different product environment. A disabled product environment produces a similar 401, with
cloud_name <cloud_name> is disabled. -
What to do: Confirm the
cloud_namein the URL matches the product environment you intend to deliver from, and check the URL structure.
404 Not Found
404 means the requested resource wasn't found, unless you use a default / placeholder image transformation. In that case, the response may still succeed with a substitute while X-Cld-Error can describe the underlying miss.
If 404 persists for a URL that should work after a recent upload or rename, see Cached 40X responses at the CDN above.
Resource not found - <public_id>
- Cause: No resource matches the public_id (typo, deletion, or wrong path).
-
What to do:
- Verify public_id and that the file still exists.
- Confirm resource_type and delivery_type in the URL (image/upload, image/private, video/upload, etc.).
- Look through your transformation parameters. If there's one that's missing an underscore, Cloudinary might try to resolve it as part of the public ID path. For example,
cartoonify/my_image, when you intendede_cartoonify/my_image.
Resource not found (public ID isn't specified in the error message)
- Cause: The real reason is hidden for security. For example, the URL may need a signature (private/authenticated assets, or add-ons that require signed URLs).
- What to do: Check whether the asset or flow requires signed URLs. Generate a signed URL, or for add-ons, enable the add-on under Unsigned add-on transformations allowed on the Security page of your Console Settings. On paid plans, the Error report may show the underlying message; otherwise support can confirm or help adjust settings.
Resource not found - <URL> (fetch)
When fetch is used and the remote returns 404, X-Cld-Error often includes Resource not found - <URL> with HTTP 404 (contrast with 400 “Error in loading” for other remote HTTP failures, described under 400 above).
Slashes and colons in folder paths
A common cause of Resource not found is using the wrong separator for a folder path. The separator depends on where the public ID appears in the URL:
| Where the public ID appears | Separator | Example |
|---|---|---|
| Base asset being delivered | Forward slash (/) |
.../image/upload/animals/dog.jpg |
| Referenced asset in a transformation parameter, such as an overlay or underlay | Colon (:) |
.../image/upload/l_animals:dog/... |
-
Cause: Using a colon in a base public ID, or a slash in an
l_oru_reference. Either way, Cloudinary looks for an asset that doesn't exist under that name. - What to do: Check which position the public ID is in, then apply the matching separator. If your product environment uses fixed folder mode, the folder path is part of the public ID, so include it. In dynamic folder mode, the asset's public ID is independent of its folder, so check the public ID value itself rather than assuming it mirrors the folder structure.
423 Locked
423 means the asset exists but the requested derived version is still being generated. It isn't a failure: the asset becomes available once processing finishes, and the same URL then succeeds unchanged. Cloudinary returns 423 for transformations that are processed asynchronously, such as adaptive bitrate streaming, background removal, video previews, long videos, and content-aware video cropping.
Resource pending / <transformation> is pending
-
Cause: The requested derived version is still being processed. The first request for such a derivation triggers the work, so it's the first request that receives 423. For example,
Video tracking-crop is pendingappears while automatic content-aware video cropping (g_auto) analyzes the video, which can take seconds or minutes depending on its length. -
What to do:
- Retry the URL after processing completes, rather than treating it as a missing asset. Subsequent requests to the same URL are served from cache.
- To avoid the wait on the first request, generate the derived version ahead of time with an eager transformation, using explicit for assets you've already uploaded, and set
eager_async=truefor long-running derivations. - Use notifications (for example
eager_notification_url) to find out when processing has finished, instead of polling the delivery URL.
Additional troubleshooting resources
- Troubleshooting video transformation errors: Common video transformation errors and how to fix them
- Transformation URL API Reference: Comprehensive documentation of all transformation parameters and their valid values
- Diagnosing error codes tutorial: Video walkthrough of troubleshooting transformation errors
- Error handling documentation: Learn about error reporting and troubleshooting strategies, including alternative error responses such as JSON, HTML, or a fallback image
- Media Inspector browser extension: Install the Cloudinary Media Inspector extension to view error headers directly in your browser
- Error Reports in Console: View aggregated error data for your account (Advanced plan and higher)