Tickd.ai
Status & outages

Midjourney Error 502 Bad Gateway: How to Fix

Updated 10/5/2026

Understanding Midjourney 502 Bad Gateway Errors

A 502 Bad Gateway error indicates that one server on the internet received an invalid response from another server. When using Midjourney, this error typically occurs when the Midjourney API, Discord’s servers, or the proxy network (usually Cloudflare) fail to communicate properly.

This error can manifest as a direct error message from the bot, a connection failure on the Midjourney web app, or an explicit HTTP 502 code in your browser console. It generally means Midjourney's backend is experiencing high traffic, a database outage, or localized network routing issues.

Follow these step-by-step instructions to isolate and resolve the issue.

How to Fix Midjourney 502 Bad Gateway Errors

1. Verify Midjourney and Discord Server Status Before changing any local settings, determine if the issue is a widespread platform outage. 1. Open Discord and go to the official Midjourney server. 2. Check the **#status** and **#announcements** channels. The developers regularly post updates regarding infrastructure failures, database migrations, and scheduled maintenance. 3. Visit the unofficial Midjourney status page or community channels to see if other users are reporting similar issues. 4. Check Discord’s status page (status.discordapp.com) to ensure the API gateway that routes bot requests is fully operational.

If there is a confirmed outage, wait 15 to 30 minutes for the engineering team to resolve the backend failure.

2. Switch to Direct Messages (DMs) or a Different Server Occasionally, a 502 error is caused by a rate limit or gateway block on a specific Discord server or channel shard. 1. Open your Direct Messages with the **Midjourney Bot**. 2. Try sending a basic prompt (e.g., `/imagine prompt test`) in the DM. 3. If you are using Midjourney on a private server, check if the bot has been timed out or lacks permissions. Try creating a new, private server, inviting the Midjourney Bot, and executing your prompts there.

3. Clear Cache and Perform a Hard Refresh If you are using the Midjourney web interface or Discord web app, stale cached data can cause 502 bad gateway responses. * **For Google Chrome / Brave / Edge (Windows):** Press `Ctrl` + `F5` or hold `Ctrl` and click the reload icon. * **For Safari / Chrome (Mac):** Press `Cmd` + `Shift` + `R` or hold `Shift` and click the reload icon. * **Clear Discord Desktop App Cache:** 1. Close Discord completely (ensure it is closed in the system tray). 2. Press `Win` + `R`, type `%appdata%`, and press Enter. 3. Open the `discord` folder, locate the `Cache`, `Code Cache`, and `GPUCache` folders, and delete their contents. 4. Restart Discord.

4. Change Your VPN or DNS Configuration Localized DNS routing issues can route your requests through degraded Cloudflare nodes, triggering a false 502 Bad Gateway error. 1. If you are using a VPN, disconnect from your current server and connect to a different country or region. This forces your traffic through a different network route. 2. If you are not using a VPN, try changing your DNS settings to a public DNS provider. Use Google DNS (`8.8.8.8` and `8.8.4.4`) or Cloudflare DNS (`1.1.1.1`). 3. Flush your local DNS cache: Open Command Prompt as administrator (Windows) and run `ipconfig /flushdns`, or run `sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder` in Terminal (macOS).

5. Re-Authorize the Midjourney Bot If you are a server administrator and the 502 error persists specifically on your server, the Discord-to-bot gateway token may have expired. 1. Go to your server settings and open the **Integrations** or **Members** tab. 2. Find the **Midjourney Bot** and kick it from the server. 3. Go to the official Midjourney Discord server, click on the Midjourney Bot in the member list, and click **Add App** or **Invite to Server**. 4. Grant the required permissions and complete the re-authorization.

When to Escalate If you have completed all the steps and still receive a 502 Bad Gateway error after two hours, it is likely a deep backend issue that requires developer intervention.

  • Contact Member Support: Go to the official Midjourney server and look for the #trial-support or #member-support channels. Authorized community guides and staff can verify if your account is experiencing specific routing flags.
  • Check Billing Status: Ensure your subscription is active, as some account-level suspensions or billing issues can result in broken API responses that show up as connection errors.

While you're here

Tickd is more than troubleshooting — these three are free and take seconds.

Agent BuilderDesign your own AI agent and export it to ChatGPT, Claude, Gemini or Grok.Build one free