Tickd.ai
Status & outages

Midjourney Error 502 Bad Gateway: How to Fix

Updated 10/16/2026

A 502 Bad Gateway error in Midjourney indicates a breakdown in communication between your client (either your web browser or your Discord app) and Midjourney's backend servers. This usually happens when Midjourney's servers are overloaded, undergoing maintenance, or experiencing routing issues through their Content Delivery Network (CDN), which is managed by Cloudflare.

Because Midjourney operates across both a standalone web app and Discord, resolving a 502 error requires isolating whether the outage is localized to your network, Discord's API, or Midjourney’s own image-generation clusters. Follow these step-by-step troubleshooting procedures to bypass the gateway error and resume generating.

1. Verify Midjourney and Discord Status Before modifying any local settings, determine if the outage is universal. A 502 error is predominantly a server-side issue.

  • Check Midjourney Status: Navigate to the official status page at status.midjourney.com to check for active incidents or scheduled maintenance.
  • Check the Discord Status: Since the Midjourney bot relies on Discord’s gateway API, check discordstatus.com to ensure Discord's API and message delivery systems are fully operational.
  • Monitor the #status Channel: Open the official Midjourney Discord server and scroll to the #status channel. The development team posts real-time updates regarding database migrations, database failures, or temporary cluster offline events here.

2. Force-Reload the Midjourney Web App If you are getting a 502 error on `midjourney.com`, your browser may have cached the invalid gateway response. A standard page refresh will not fix this.

  • Windows: Press Ctrl + F5 or Ctrl + Shift + R in your browser.
  • Mac: Press Cmd + Shift + R in Safari, Chrome, or Firefox.
  • Mobile Devices: Clear your mobile browser's cache for the past hour through the browser's privacy settings, then reload the page.

3. Bypass Local CDN Routing Issues Cloudflare routes your traffic to Midjourney through regional edge servers. If a regional edge server is experiencing a routing loop, you will see a 502 error while users in other regions do not. You can bypass this by resetting your DNS resolver or shifting your IP route.

  • Flush your DNS Cache (Windows): Open Command Prompt as an administrator and execute ipconfig /flushdns.
  • Flush your DNS Cache (Mac): Open Terminal and execute sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder.
  • Use a VPN: If your local CDN gateway is down, connect to a VPN server in a different country or state. This forces Cloudflare to route your Midjourney API requests through a different, healthy server node.

4. Clear Discord Desktop App Cache If you are encountering 502 errors or connection timeouts inside the Discord desktop application, corrupted local cache files can block bot responses.

  1. Close the Discord application completely (ensure it is not running in your system tray).
  2. Press Windows Key + R to open the Run dialog box.
  3. Type %appdata% and press Enter.
  4. Locate the folder named discord and double-click it.
  5. Locate and delete the following folders: Cache, Code Cache, and GPUCache.
  6. Relaunch Discord and attempt to run a command like /imagine.

5. Isolate Bot vs. Web App Functionality Midjourney operates two separate frontends. When one experiences a gateway error, the other is frequently still operational.

  • If the Web App is Down: Avoid using the web editor or web generation tool. Open Discord and send your prompts directly to the Midjourney Bot via Direct Messages (DMs) or within your private Discord server.
  • If the Discord Bot is Down: Log into midjourney.com/imagine and attempt to generate images using the web portal's direct input bar. The web app communicates through a separate API pipeline that may remain unaffected by Discord bot shard outages.

6. Diagnose Offline Bot Shards Midjourney distributes its bot load across multiple virtual instances called "shards." If your server is hosted on an offline shard, you will experience connection errors.

  • Type /info in your chat bar and press Enter. If the bot is active on your shard, it will quickly return your account status and remaining generation hours.
  • If /info times out or fails with an integration error, the specific bot instance in your current Discord channel is likely offline. Try generating in a different channel or invite the Midjourney Bot to a new, private server to force a connection to a different, active server shard.

When to Escalate If you have completed these steps and continue to receive a 502 Bad Gateway error for more than 30 minutes, the issue is a major backend outage that requires systems engineer intervention. Do not continuously spam prompts, as this can trigger a secondary `429 Too Many Requests` rate-limit block on your account.

Monitor the #member-support or #announcements channels on the official Midjourney Discord server. If you have an active paid subscription, you can also post your issue in #member-support once the servers stabilize to see if billing adjustments or fast-hour refunds are being issued for the downtime.

Set up your AI once so you repeat yourself less.

Try AI Setup Profile

Tickd is independent and not affiliated with any AI company.

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