Android 502Medium

Error 502 on Android: Causes and Fixes

Error 502 on Android means the gateway server received an invalid response from an upstream server. We cover the causes and provide concrete steps to resolve the issue on your device.

Updated at February 16, 2026
5-10 min
Easy
FixPedia Team
Применимо к:Android 8.0+All browsers (Chrome, Firefox, Samsung Internet)Any internet-enabled app

What Does Error 502 Mean

Error 502 Bad Gateway is a standard HTTP status indicating that a gateway server (such as a proxy server or load balancer) received an invalid or empty response from an upstream server it was trying to reach. On an Android device, you'll see this error in your browser (Chrome, Firefox, etc.) or within an app when attempting to load a web resource or execute an API request.

The error text typically appears as:

502 Bad Gateway

or

502 Proxy Error

or a more detailed version from your browser/ISP.

Common Causes

A 502 error on an Android device is almost always related to network or configuration issues. Here are the primary causes:

  1. Internet connection problems. Unstable Wi-Fi, weak cellular signal, or ISP outages.
  2. Incorrect proxy or VPN settings. A manually configured proxy that isn't responding, or an unstable VPN server dropping the connection.
  3. Corrupted or outdated browser/app cache. Local data stored on the device conflicts with new versions of a website or API.
  4. DNS issues. Your ISP or configured DNS server cannot properly resolve the target server's domain name.
  5. Temporary server-side failures. The problem may not be on your device but on the server you're trying to reach (the site is down, overloaded, or misconfigured). In this case, the error will appear on all devices on that network.
  6. Firewall or antivirus. Some mobile antivirus or security systems (especially in corporate networks) may block traffic, mistakenly identifying it as a threat.
  7. Incorrect date and time. A significant mismatch between your device's time and the server's time can disrupt SSL/TLS functionality and lead to gateway errors.

Solutions

We recommend performing the steps in order, from simplest to most complex.

Solution 1: Basic Network Diagnosis

First, determine if the problem is local or widespread.

  1. Check other websites. Try opening google.com or yandex.ru. If they work, the issue is likely with the specific resource you're trying to reach. If they don't work — the problem is with your connection.
  2. Switch between networks. If you're on Wi-Fi, try mobile data (and vice versa). If the error disappears on mobile data, the problem lies with your router or Wi-Fi ISP.
  3. Try a different browser. Install Firefox or Kiwi Browser and check if the error reproduces there. If not, the problem is with your primary browser's cache or settings.

Solution 2: Reboot and Reset Network Settings

  1. Restart your Android device. This standard but effective action clears temporary glitches in the OS network stack.
  2. Reboot your router. If the issue is with Wi-Fi, unplug the router from power for 30 seconds, then plug it back in.
  3. Reset network settings. Go to Settings → System → Reset → Reset Wi-Fi, mobile & Bluetooth (the exact name may vary slightly). This restores network settings to factory defaults without deleting your personal data.

Solution 3: Disable VPN and Check Proxy

  1. Disable all VPN apps. Tap the VPN notification or open the app and press "Disconnect".
  2. Check Wi-Fi proxy settings.
    • Go to Settings → Network & Internet → Wi-Fi.
    • Long-press your connected network → Modify network (or "Advanced").
    • In the Proxy section, ensure "None" or "Off" is selected. If an address is listed (e.g., 127.0.0.1:8080), a local proxy is configured (often for debugging or AdGuard). Disable it.
  3. If you use proxy apps (e.g., for bypassing blocks), try temporarily uninstalling or disabling them.

Solution 4: Clear Cache

Cache consists of temporary files that speed up website loading. Over time, they can become corrupted.

  1. Clear browser cache (e.g., Chrome):
    • Open Chrome → tap the three dots in the top right → Settings.
    • Privacy and securityClear browsing data.
    • Select "Cached images and files" (you can also select "Cookies and site data," but this will log you out of sites). Tap "Clear data".
  2. Clear system app cache:
    • Settings → Apps (or "Apps & notifications").
    • Find the problematic app (or your browser) in the list.
    • Storage (or "Storage & cache") → Clear cache.
    • Do not tap "Clear storage" or "Clear data" at this stage — this will delete your personal app data (logins, history).
  3. Clear system cache (optional): Some skins (e.g., Samsung) have Settings → About phone → Storage → Clear cache (or "Clean up"). This is safe.

Solution 5: Change DNS Servers

Your ISP's problematic DNS may not resolve domains correctly.

  1. Go to Settings → Network & Internet → Wi-Fi.
  2. Long-press your network → Modify network.
  3. In the window that opens, check "Advanced options" (or tap the down arrow).
  4. In the "DNS 1" field, enter 8.8.8.8, and in "DNS 2"8.8.4.4 (these are Google's public DNS servers).
  5. Tap "Save" and reconnect to the network.

Solution 6: Check Date and Time

  1. Go to Settings → System → Date & time (or Settings → About phone → Date & time).
  2. Ensure "Automatic date & time" (and "Automatic time zone") is enabled.
  3. If already enabled, try disabling it, manually setting the correct date and time, and then re-enabling it.

Solution 7: Update or Reinstall the App

If the error occurs only in one specific app (not in the browser).

  1. Open the Google Play Store.
  2. Find the app. If an "Update" button is available, tap it.
  3. If updating doesn't help, try uninstalling the app and reinstalling it.
  4. If the problem persists, the issue may be with the app's own server. Check the service status using other devices or websites like downforeveryoneorjustme.com.

Prevention

To minimize the chance of encountering a 502 error in the future:

  • Avoid untrusted public Wi-Fi networks without additional protection (VPN). If you must use them, choose reputable services.
  • Regularly update your Android OS and all apps, especially browsers.
  • Do not install unverified proxy servers or VPNs from unknown sources.
  • Periodically clear the cache of your browser and frequently used apps (every 1-2 months).
  • Use reliable DNS servers (Google DNS 8.8.8.8/8.8.4.4 or Cloudflare 1.1.1.1), especially if your ISP has frequent outages.
  • Check date and time settings after prolonged internet disconnection or changing time zones.

F.A.Q.

How does error 502 differ from error 504?
Can error 502 be on the provider's side?
Why does error 502 appear only on Wi-Fi, while mobile data works?
Will clearing the cache help if error 502 appears in all browsers?

Hints

Check your internet connection
Restart your device and router
Disable VPN and proxy servers
Clear browser and app cache
Change DNS servers

Did this article help you solve the problem?

FixPedia

Free encyclopedia for fixing errors. Step-by-step guides for Windows, Linux, macOS and more.

© 2026 FixPedia. All materials are available for free.

Made with for the community