---
title: OPTIMIZED_EXTERNAL_IMAGE_REQUEST_FAILED
product: vercel
url: /docs/errors/OPTIMIZED_EXTERNAL_IMAGE_REQUEST_FAILED
type: reference
prerequisites:
  []
related:
  []
summary: The request for an optimized external image failed. This is a server error.
install_vercel_plugin: npx plugins add vercel/vercel-plugin
---

# OPTIMIZED_EXTERNAL_IMAGE_REQUEST_FAILED

The `OPTIMIZED_EXTERNAL_IMAGE_REQUEST_FAILED` error occurs when the request for an optimized external image fails.

**Error Code:** `502`

**Name:** Bad Gateway

## Troubleshoot

To troubleshoot this error, follow these steps:

1. **Verify external URL:** Ensure that the external image URL is correct and accessible
2. **Check query parameters:** Ensure that any query parameters are valid


---

[View full sitemap](/docs/sitemap)
