ErrorVault.com

Error: Code 502 - The web server you're trying to reach is sending back error messages.


How to fix the Web Error Code Error 502 Bad Gateway

This article features error number Code 502, commonly known as Bad Gateway described as The web server you're trying to reach is sending back error messages.


About Status Codes

When you receive web error codes, you may either be having client or server issues. The problem could be related to browser or settings that are blocking your connection, or it can be any other issues related to the server you are trying to access.

To explain the problem further, here are some useful information about web error codes, their symptoms, causes and repair methods.


Definitions (Beta)

Here we list some definitions for the words contained in your error, in an attempt to help you understand your problem. This is a work in progress, so sometimes we might define the word incorrectly, so feel free to skip this section!

  • Gateway - This is a vague tag for all kinds of gateways including networks, general interfaces and products, where this term is used with its own meaning
  • Messages - a communication containing some information, news, advice, request, or the like, sent by messenger, radio, telephone, or other means.
  • Server - A server is a running instance of a software application capable of accepting requests from a client and giving responses accordingly.
  • Web - Use this tag for general questions related to all aspects of the world wide web
  • .each - An iterator function or language struct which can be used to iterate over arrays or lists.

Symptoms of Code 502 - Bad Gateway

Web error codes are also known as http status codes. There are five different classes of http status codes and they always start with the following digits, depending on what kind of error was encountered by the user. These are also the symptoms of the error that the user is experiencing. To explain further, here are the status codes.

5xx: Server Error
Users receive response with error code beginning with this number to message an error happening on the server side. In other words, these are server acknowledged errors coming from their end. These are the error messages displayed:
500 - Internal Server Error
501 - Not Implemented
502 - Bad Gateway
503 - Service Unavailable
504 - Gateway Timeout
505 - HTTP Version Not Supported


Fix Bad Gateway (Error Error 502)
(For illustrative purposes only)



Causes of Bad Gateway - Error 502

5XX codes are caused when the server fails to fulfill a request.


Repair Methods

There are particular troubleshooting steps for particular Web Error codes. However, there are also generalized repair methods users can perform when faced with these kinds of errors.

If a repair method works for you, please click the upvote button to the left of the answer, this will let other users know which repair method is currently working the best.

Please note: Neither ErrorVault.com nor it's writers claim responsibility for the results of the actions taken from employing any of the repair methods listed on this page - you complete these steps at your own risk.

up vote 1 down vote accepted
  • Sometimes, additional Extensions may give you Web Error Codes.
  • Uninstall Extensions you recently installed by going to your browser settings and then clicking More Tools.
  • You will see extensions than had been installed on your browser, choose the latest addition which you suspected caused the problem you are having.
When accessing a site, data gets stored in the browser cache. Sometimes, you have tried fixing a web error but the same message appears on your browser. In such cases, you need to clear your browser cache to get rid of the annoying message. Here are ways to do that in different kinds of browsers:
  • On Google Chrome
    • Open Chrome and click the three dots on the upper right portion of your browser
    • Click More Tools and then Click Clear browsing data.
    • You may choose to delete everything or just a certain browsing period.
    • Check the boxes beside Cookies and other site data and Cached images and files.
    • Finally, click Clear data.
  • On Edge
    • Click the ... it is the rightmost button just beneath the close button.
    • Scroll down and Click Settings.
    • Look for Clear browsing data, and click Choose what to clear button.
    • It will give you option to choose which type of data you want to clear, just put a check mark on the items you want to include, then click Clear.
  • On Mozilla
    • Go to History menu and select Clear Recent History.
    • You may click the Alt button if the menu bar is hidden.
    • You will see a dropdown menu where you can select the period or range you want to delete, click your selection.
    • You can click on Details to choose what to clear, whether it be the entire cache or other items.
    • Once selected, click Clear now and then reboot the browser to let changes take effect.
  • If you want to check log files, you may do so by first ensuring that you are logged into the web server computer as an Administrator.
  • Click Start, then Settings, then click Control Panel.
  • Open Administrator Tools and then double-click Internet Services Manager.
  • Select the website from the list of different served sites.
  • Right click the website and then point your mouse to Properties.
  • Select Website tab and then click Properties. On it, you will see General Properties tab. On the bottom of the window, you may see the location of the log files generated.
  • Open log files using WordPad, any text file viewer or Microsoft Word.
  • Here, you should be able to analyze where you got the errors while accessing a server.
  • There are also times when you manually enter the URL of a site you wish to explore. If you are getting errors after doing this, check the URL you just entered on the address bar if you are indeed accessing the correct address. If not, correct the items you typed incorrectly.
For Windows 7
  • Search for Windows Updates on the search bar.
  • Click enter when it comes up on the search results.
  • Check recent updates and click Uninstall updates on recent dates when the error began happening.
For Windows 8 and Windows 10
  • Press the window key and the letter X simultaneously to open Settings
  • When you get to Windows settings, click Update & Security.
  • Click view installed update history, then Uninstall updates.
  • This troubleshooting is normally handled by the site admin. If that is you, then you need to have an understanding of Web server configurations.
  • You may check which web server is running your site by using URL or domain checkers. You just need to enter the site address and analyze the results that you will get.
  • You may also check for broken links by right clicking the webpage and clicking on Inspect. This should give you the code to the site on the right side. You may check each anchor text and see if the links connected to them are still live.
  • You may also check for any unwanted characters on the codes and script by Debug Application Codes and Scripts. If you don't have any idea how to do it, you may check this resource to do that.
  • You may also try to Refresh website. Sometimes, the error you are getting is an old error which has not gone away and a simple refresh by clicking F5 may do the job.
Other languages:

Wie beheben Fehler 502 (Schlechtes Gateway) - Der Webserver, den Sie erreichen möchten, sendet Fehlermeldungen zurück.
Come fissare Errore 502 (Gateway difettoso) - Il server web che stai cercando di raggiungere sta inviando messaggi di errore.
Hoe maak je Fout 502 (Slechte Gateway) - De webserver die u probeert te bereiken, stuurt foutmeldingen terug.
Comment réparer Erreur 502 (Mauvaise passerelle) - Le serveur Web que vous essayez d'atteindre renvoie des messages d'erreur.
어떻게 고치는 지 오류 502 (나쁜 게이트웨이) - 연결하려는 웹 서버가 오류 메시지를 다시 보내고 있습니다.
Como corrigir o Erro 502 (Bad Gateway) - O servidor da web que você está tentando acessar está enviando mensagens de erro.
Hur man åtgärdar Fel 502 (Dålig gateway) - Webbservern du försöker nå skickar tillbaka felmeddelanden.
Как исправить Ошибка 502 (Плохой шлюз) - Веб-сервер, к которому вы пытаетесь подключиться, отправляет обратно сообщения об ошибках.
Jak naprawić Błąd 502 (Zła brama) - Serwer sieciowy, z którym próbujesz się połączyć, odsyła komunikaty o błędach.
Cómo arreglar Error 502 (Puerta de enlace incorrecta) - El servidor web al que está intentando acceder está enviando mensajes de error.




The Author About The Author: Phil Hart has been a Microsoft Community Contributor since 2010. With a current point score over 100,000, they've contributed more than 3000 answers in the Microsoft Support forums and have created almost 200 new help articles in the Technet Wiki.


Follow Us: Facebook Youtube Twitter
Last Updated:
19/01/24 03:47 : A Android user voted that repair method 5 worked for them.

Recommended Repair Tool:


This repair tool can fix common computer problems such as blue screens, crashes and freezes, missing DLL files, as well as repair malware/virus damage and more by replacing damaged and missing system files.

STEP 1:
Click Here to Download and install the Windows repair tool.

STEP 2:
Click on Start Scan and let it analyze your device.

STEP 3:
Click on Repair All to fix all of the issues it detected.

DOWNLOAD NOW

Compatibility

Requirements
1 Ghz CPU, 512 MB RAM, 40 GB HDD
This download offers unlimited scans of your Windows PC for free. Full system repairs start at $19.95.

Article ID: ACX01606EN

Applies To: Windows 10, Windows 8.1, Windows 7, Windows Vista, Windows XP, Windows 2000

Help someone else with this error and Share This Page:
Email Facebook Google LinkedIn Print Twitter

Speed Up Tip #12

Removing Rootkit Infection:

Deeper spyware infections such as rootkit are not easy to remove. In order to boost the speed performance of your infected computer, use offline virus scanner such as the Windows Defender offline version to fix this kind of issue.

Click Here for another way to speed up your Windows PC
Home     Blog     About     Privacy Policy     Contact Us


Errors in Alphabetical Order:  A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Microsoft & Windows® logos are registered trademarks of Microsoft. Disclaimer: ErrorVault.com is not affiliated with Microsoft, nor does it claim such affiliation. This page may contain definitions from https://stackoverflow.com/tags under the CC-BY-SA license. The information on this page is provided for informational purposes only. © Copyright 2018