Fix The 429 Too Many Requests with Effective Techniques

Websites are prone to experiencing many errors. Some errors are easy to resolve, but others are more complex. The 429 Too Many Requests Error falls in the latter category. It’s challenging to fix it because the error does not give any information on its nature. The user wonders what they can do to fix it. There are various reasons behind this error. So, the person needs to try more than a single resolution to Troubleshoot it effectively. In this article, you’ll learn about what exactly does this error mean and the steps you can take to resolve it.

 

What Is 429 Too Many Requests Error

The Error 429 is an HTTP response status code, which signals that the client app has gone beyond its rate limit. It’s a client error, which shows that you have sent excessive requests at a particular point in time. In simple words, the server wants to tell you to stop sending requests. Usually, you will also find this error code specifying when you can send another request.

 

What Results in the 429 Too Many Requests Error

You will be surprised to know that Error 429 is not an error in the technical sense. It implies that it’s a server response or the response from an application programming interface or a plugin. This response asks the client application to stop sending their requests as they don’t have adequate resources to accept them at a particular time. The client application can be an application or a website. In some cases, it can also be a user like a site admin, a visitor to a site, or even a hacker.

 

Understanding Error 429 with an example

You can understand the causes of Error 429 too many requests with the help of an example. If an individual tries to get access to a page on your site, very often in a short time, they will definitely receive a 429 error from your server. It is also an instance of a brute-force login attempt wherein the hacker continuously logs into a website. The rate limit is thus an essential security measure. But this rate limit also gets kicked in if the site uses several resources on a service or a shared hosting server.

For instance, if your website receives more than 40 requests from an IP address in a single minute, the server blocks that IP address for a period of five minutes. Thus, you can regard the 429 response as a security measure against those who mistakenly abuse server resources. The error is also designed to halt excessive requests that result in straining a server or a service whose actual purpose is to be shared. As the request timing and number get controlled by the rate limits, various problems are prevented even before they get a chance to arrive.

Sometimes, the server can identify a user with a cookie instead of their login credentials. Requests also get counted based on a single request across your or several servers. That’s why several situations can make you witness this error. You can find it as the following messages.

 

  • 429 Too Many Requests
  • HTTP 429
  • 429 Error
  • Error 429 (Too Many Requests)

 

The error will include details about the reason for this code and the period for which the user should wait before trying to log in again. Many times, the problem will disappear on its own. But there are some situations that are caused by problems with a plugin or Denial of Service, or DDoS attacks. In such cases, you should be proactive to resolve them.

 

How to Resolve the Error 429 

There are many solutions for getting rid of this error. In the section below, you’ll find some of the most effective ways through which you can know how to fix Error 429 Too Many Requests.

 

1. Modify the default login URL of WordPress

The error is often the result of brute-force login attempts. Therefore, the first step you can take to refrain hackers from breaking your WP login page is to modify or change its URL. When you change the URL, the attackers won’t be able to find it.

You can locate the login page by going to yourwebsite.com/wp-admin. However, it’s not safe because every single person on the internet knows this place and can easily access it.

An effective way to change the default WP URL is to use a free plugin called the WP Hide Login. For using it, you must install and activate it and then go to the ‘Settings.’ From there, you can go to the ‘WP Hide Login’ tab on the WP dashboard. Now, you can modify the URL by entering the extension you want to use. When typing in a new extension, ensure that it is not one that people can easily guess.

 

2. Wait for some time before sending another request.

It is one of the easiest ways to deal with Error 429 Too Many Requests. Just wait to send another request. Usually, you can find a ‘Retry-after’ header with this status code. It tells how much time you should wait before giving another request.

 

HTTP/1.1 429 Too Many Requests
Content-type: text/html
Retry-After: 3600
<html>
<head>
<title>Too Many Requests</title>
</head>
<body>
<h1>Too Many Requests</h1>
<p>I only allow 50 requests per hour to this website per logged in
 user. Try again soon. </p>
</body>
</html>

 

3. Change to a default theme

If a plugin isn’t a cause for this error message, the issue always lies with the active theme of your website. So, you can check if your theme is the culprit by disabling it and switching to a default theme that your content management system offers. If you have a WordPress website, you can change to any of the numerous themes that this CMS provides. The 429 Error would get disabled if the theme were causing it.

 Next, you should choose a theme devoid of any built-in features. Apart from that, you can connect with the problematic theme’s designers and inform them about this issue. You can also ask them to resolve this error.

 

4. Deactivate every WordPress plugin temporarily.

Any plugin can result in Error 429 if it creates several external requests. You can attempt to disable every plugin at once to make sure that they aren’t behind the problem.

If you don’t have dashboard access, you’ll have to navigate to your website through FTP. You can use a free and open-source client like Filezilla to go to the public_html/wp-content/directory. You’ll find the folder of plugins inside. Right-tap on this folder and modify its name. Now, WordPress will be unable to find any plugins and will deactivate them automatically. But before accessing your site, make an empty folder named ‘Plugins‘ for WordPress to still function as usual.

If you don’t find the error 429 when you access your site, it indicates that one of the plugins you disabled was the cause. So, you can narrow down those plugins which resulted in the problem. For doing that, you should:

  • Delete the directory of empty plugins you set up just now. Restore the earlier folder to its initial name.
  • Navigate to the plugin’s directory.
  • Rename one plugin folder that’s inside to any other name. It will deactivate only that particular plugin.
  • Navigate to your site and find whether error 429 is still there or not.
  • If the error is there, go to that plugin folder. Then repeat the steps of renaming the plugin folder and checking your site for the error again. Gradually, you’ll find the plugin that was causing the error.

 

5. Get in touch with your hosting provider.

Many people may find that even after disabling their current themes and plugins, Error 429 does not disappear. They might still wonder about how to fix Error 429 Too Many Requests.

If this happens, you can contact your hosting provider. At times, the cause for this error is your server rather than the website. So, none of your attempts at troubleshooting the error will help in resolving it. It’s highly possible that the hosting provider is rate-limiting. The host can block requests from specific third-party platforms that make a lot of requests to your site. These include crawlers, bots, search engines, or applications like the Google Search Console.

Many bots negatively impact a site, particularly if you have a robots.txt code on your site. But crawlers like Google are essential for a business website. So, you need to ensure that your host limits bots and crawlers appropriately. When you contact your hosting provider and ask them about this issue, you can also gain some insights into its causes.

 

Final Words

You can avoid the HTTP 429 Error easily by minimizing the number of requests in a short time. Remember that it’s your server’s way to inform you that your rate of requests is very high. But at times, the reason behind this error is your server, which means you should contact your hosting provider to rectify it. Implement the various measures in this article to fix this problem. Don’t worry if you still face this error on your WordPress website. Contact expert WordPress support services. The skilled WordPress professionals will diagnose the root cause and come up with highly effective troubleshooting techniques.

 

Tagged with: