Как обойти ошибку 429

As MRA said, you shouldn’t try to dodge a 429 Too Many Requests but instead handle it accordingly. You have several options depending on your use-case:

1) Sleep your process. The server usually includes a Retry-after header in the response with the number of seconds you are supposed to wait before retrying. Keep in mind that sleeping a process might cause problems, e.g. in a task queue, where you should instead retry the task at a later time to free up the worker for other things.

2) Exponential backoff. If the server does not tell you how long to wait, you can retry your request using increasing pauses in between. The popular task queue Celery has this feature built right-in.

3) Token bucket. This technique is useful if you know in advance how many requests you are able to make in a given time. Each time you access the API you first fetch a token from the bucket. The bucket is refilled at a constant rate. If the bucket is empty, you know you’ll have to wait before hitting the API again. Token buckets are usually implemented on the other end (the API) but you can also use them as a proxy to avoid ever getting a 429 Too Many Requests. Celery’s rate_limit feature uses a token bucket algorithm.

Here is an example of a Python/Celery app using exponential backoff and rate-limiting/token bucket:

class TooManyRequests(Exception):
"""Too many requests"""

@task(
   rate_limit='10/s',
   autoretry_for=(ConnectTimeout, TooManyRequests,),
   retry_backoff=True)
def api(*args, **kwargs):
  r = requests.get('placeholder-external-api')

  if r.status_code == 429:
    raise TooManyRequests()

Я столкнулся с проблемой,а именно с обходом ограничения запроса в данной ссылке https://www.instagram.com/'+ parse +'/?__a=1'.Я пробовал обойти через подмену User-agent,но у меня ничего не получилось

import json
import urllib.request
 
 
headers = {
    'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.47 Safari/537.36'
}
 
url = 'https://www.instagram.com/zuck/?__a=1'
rq = urllib.request.Request(url, headers=headers)
 
data1 = urllib.request.urlopen(rq)
data = json.loads(data1.read())
print("id",data['graphql']['user']['id'])

задан 28 янв 2021 в 21:06

justdeveloper1's user avatar

7

HTTP 429 Too Many Requests код ответа указывает, что пользователь отправил слишком много запросов за последнее временя («ограничение скорости» или «rate limiting» ).

Обойти можно:

  • сделать паузы между запросами;
  • менять user-agent;
  • менять ip через proxies

Но 429 можно встретить и при единичном запросе:

>>> import requests
>>> url = 'https://www.instagram.com/geeks_for_geeks/'
>>> headers={'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.47 Safari/537.36'}
>>> r = requests.get(url, headers)
>>> r
<Response [429]>

а при указании headers=headers:

>>> r = requests.get(url, headers=headers)
>>> r
<Response [200]>

ответ дан 28 янв 2021 в 21:24

Jack_oS's user avatar

Jack_oSJack_oS

12.5k7 золотых знаков18 серебряных знаков48 бронзовых знаков

2

Sooner or later, every website runs into a bug or error that’s difficult to troubleshoot. Often, that’s because the error itself doesn’t give you many details. The 429 Too Many Requests error is one such example.

We know what its most common causes are, fortunately. Since there are several potential culprits, however, you’ll often need to try more than one fix before you can resolve it.

In this article, we’re going to talk about what causes the 429 Too Many Requests error and what it looks like. Then we’ll go over five ways you can troubleshoot your website if you ever run into this particular issue. Let’s get to work!

  • What is the HTTP 429 Error
  • What Causes the 429 Too Many Requests Error
  • How to Fix the 429 Too Many Requests Error (5 Methods)

How to Fix 429 Too Many Requests in WordPress:

You’re receiving the 429 Too Many Requests error message because the user has sent too many requests in a given amount of time (could be a plugin, a DDos, or something else). It’s a server telling you to please stop sending requests.

To fix it in WordPress, try one of these 5 methods:

  1. Change your WordPress default login URL
  2. Check whether your  HTTPS internal links are causing the issue
  3. Deactivate all your WordPress plugin
  4. Switch to a default WordPress theme
  5. Contact your hosting provider

What is the HTTP 429 Error?

The HTTP 429 error is returned when a user has sent too many requests within a short period of time. The 429 status code is intended for use with rate-limiting schemes.

Check Out Our Video Guide to the 429 Too Many Requests Error

What Causes the HTTP 429 Too Many Requests Error

In some cases, when your server detects that a user agent is trying to access a specific page too often in a short period of time, it triggers a rate-limiting feature. The most common example of this is when a user (or an attacker) repeatedly tries to log into your site.

However, your server may also identify users with cookies, rather than by their login credentials. Requests may also be counted on a per-request basis, across your server, or across several servers. So there are a variety of situations that can result in you seeing an error like one of these:

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

The error may also include additional details regarding the reason for the 429 status code, and how long the user must wait before attempting to log in again. Here’s an example of what that might look like:

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>

Regardless of how the error appears, it always means the same thing – there’s a user or a snippet of code that’s overwhelming your server with too many requests. Sometimes, the problem can go away on its own. In other situations, such as those caused by issues with a plugin or Denial of Service (DDoS) attacks, you’ll need to be proactive in order to resolve the error.

The problem is that the 429 error most often affects your login page, which can make it impossible for you to access your website’s dashboard. That can make fixing it a little tricky, but it’s still achievable if you know what to try.

How to Fix the 429 Too Many Requests Error (5 Methods)

As you might imagine, we deal with a lot of WordPress support requests due to the nature of the services we offer. That means we’re intimately familiar with the 429 error, and its many potential causes.

In the following sections, we’ll cover five of the most common causes we’ve seen for the 429 Too Many Requests error in WordPress. For each potential issue, we’ll also teach you how to go about fixing it, so you can get your site back up and running quickly.

1. Change Your WordPress Default Login URL

Brute-force login attempts are one of the leading causes of the 429 error on WordPress websites. One quick way to prevent attackers from trying to break through your WordPress login page is to change its URL from the default option, so they can’t find it in the first place.

By default, you can find your login page by navigating to yourwebsite.com/wp-admin. That’s pretty easy to remember, but it’s also downright insecure since everyone on the web will know exactly where to access it.

The easiest way to change your default WordPress URL is by using the free WPS Hide Login plugin:

WPS Hide Login

WPS Hide Login plugin

Let’s walk through the process of using this particular tool. You’ll first want to install and activate the plugin just as you would any other, and then navigate to the Settings > WPS Hide Login tab in your WordPress dashboard:

Changing login URL

Changing the login URL

Here, you can easily change your login URL by typing in whatever extension you’d like to use. Make sure to stay away from easy-to-guess options such as login, wp-login, and so on. This would defeat the purpose of changing your URL in the first place, so you’ll want to come up with something unique to your site.

Note that this plugin also enables you to redirect users who try to access your old login URL to another page. For example, the default option will show anyone who tries to visit /wp-admin a 404 error page, so they’ll know they’re looking in the wrong place. When you’re done, remember to save the changes to your settings, and you’ll be good to go.

2. Disable the Really Simple SSL Plugin and Replace Your Internal Links

These days, there’s no good reason you shouldn’t have a Secure Sockets Layer (SSL) certificate set up for your website. Likewise, your entire website should load over HTTPS. This is far more secure than using the older HTTP protocol, and it can even have a positive effect on your site’s Search Engine Optimization (SEO).

When it comes to enforcing HTTPS use, you can either use the manual route – such as an .htaccess redirect – or a plugin. One of the most popular choices is Really Simple SSL:

Really Simple SSL

Really Simple SSL plugin

This plugin’s appeal is that it forces your entire website to load over HTTPS with just a couple of clicks. However, in our experience, it can also lead to occasional bugs. For instance, under some circumstances, it can trigger the 429 error we’ve been talking about.

There’s nothing inherently wrong with this plugin, but it’s definitely not the best way to implement HTTPS use. The problem is that, even if you implement HTTPS manually, you’re still left with the problem of what to do about internal links. Chances are there are a lot of internal links throughout your website, so you’ll need to find a way to replace all of them with their HTTPS versions after disabling the plugin.

First, you’ll want to take care of the plugin itself. If you have access to the WordPress admin area, disabling Really Simple SSL shouldn’t be an issue – just hit Deactivate and you’re done:

Deactivating really simple ssl

Deactivating the Really Simple SSL plugin

However since the 429 Too Many Requests Error often blocks you from accessing your dashboard, you might have to take the manual route and disable the plugin using an FTP client.

Either way, once the Really Simple SSL plugin is gone, the 429 error should be resolved. That means you can access your dashboard to set up a new plugin, which will help you replace all of your internal links in one swoop. That plugin is called Search and Replace:

Search and Replace

Search and Replace plugin

Go ahead and activate the plugin, then navigate to the Tools > Search & Replace tab in WordPress. Inside, select the wp_postmeta table, and then enter the following parameters alongside the Search for and Replace with fields respectively:

If your site uses a non-www domain:

http://yourwebsiteurl.com
https://yourwebsiteurl.com

In some cases, there may be www instances of your domain in the database as well, so we also recommend running another search and replace with the settings below.

http://www.yourwebsiteurl.com
https://yourwebsiteurl.com

If your site uses a www domain:

http://www.yourwebsiteurl.com
https://www.yourwebsiteurl.com

To replace non-www instances of your domain in the database, run another search and replace with the settings below:

http://www.yourwebsiteurl.com
https://yourwebsiteurl.com

Then select the dry run option, which will let you know how many instances of your HTTP URLs the plugin will replace within your database. After that dry run, execute the plugin for real and it will replace all the necessary links.

Keep in mind that after disabling the Really Simple SSL plugin, you’ll also need to set up a site-wide HTTPS redirect using your .htaccess file. This will enable you to implement HTTPS effectively, without the risk of further 429 errors.

3. Temporarily Deactivate All of Your WordPress Plugins

So far, we’ve focused on a single plugin that may cause the 429 error. However, in practice, any plugin could cause this issue if it makes too many external requests. If neither of the above methods leads to a solution in your case, it may be time to try disabling all of your plugins at once, to ensure that they aren’t the problem.

For this section, we’ll assume you don’t have access to your dashboard and can’t disable plugins the usual way. In that case, you’ll need to access your website via FTP using a client such as Filezilla, and navigate to the public_html/wp-content/ directory.

Inside, there should be several folders, one of which is called plugins:

Plugins folder

Plugins folder

Right click on that folder, and change its name to something else, such as plugins.deactivated. Once you do that, WordPress won’t be able to ‘find’ any of the plugins, and it will automatically deactivate all of them. However, before you try to access your site again, go ahead and create a new empty folder called plugins, so WordPress will still function as normal.

If the 429 error is gone when you next visit your site, you can assume that one of the plugins you turned off was the culprit. That means you need to narrow down which one caused the problem. To do that, you’ll want to:

  1. Delete the empty plugins directory you set up a minute ago, and restore the previous folder to its original name.
  2. Access the plugins directory.
  3. Rename one of the plugin folders within to anything else, which will deactivate only that specific plugin.
  4. Try to access your website, and see if the 429 error is gone.
  5. If the error persists, return that plugin folder to its original name and repeat steps 3 and 4 with the next one.

By moving down your list of active plugins one by one, you should eventually discover which one is the culprit. Once you figure out which plugin is behind the 429 Too Many Requests error, you can delete it altogether, which should fix the issue.

4. Switch to a Default WordPress Theme

If it turns out that a plugin isn’t the cause of your 429 error, it’s possible that your active theme might be at fault. To figure out if that’s the case, you can disable your active theme manually, forcing WordPress to switch to one of the default templates that ships with the CMS.

This process works much the same as disabling plugins manually. You’ll want to launch your trusty FTP client once more, and this time navigate to the public_html/wp-content/themes directory. Once there, look for the folder that corresponds to your active theme and rename it to anything else you want.

If you try to access your website after that, the 429 Too Many Requests error should be gone. You’ll also notice that everything looks quite a bit different. Don’t panic, though, your theme and all of its customizations are still there.

All you need to do is return the theme folder to its original name and activate it once more. If the 429 error returns afterward, then you might need to contact the theme’s developers or consider changing your site’s theme and delete it eventually.

5. Contact Your Host If You Still Can’t Resolve the Error

In some instances, it’s possible that the cause behind the 429 error originated with your server, rather than with your website itself. If this is the case for you, no amount of work on your part will be able to fully resolve the problem.

For example, some web hosts will block requests from specific third-party services or platforms. These can include search engines, crawlers, and other apps (such as Google Search Console) that make large numbers of requests to your website.

Contacting your hosting provider and asking them to allow these requests can solve the issue. Additionally, even if limitations placed on your server by your host aren’t the cause of the problem, they may be able to provide valuable insight and advice that can help you find the correct solution.

Getting the 429 Too Many Requests error message? That’s a bummer but don’t despair, we’ve got you covered with our guide!😭🤗Click to Tweet

Summary

Encountering an error on your website is always frustrating. However, as far as errors go, those with number codes at least give you enough information to start fixing them. If you run into the 429 Too Many Requests error, you’ll know that something is overwhelming your server with too many requests, so it’s only a matter of identifying what the source of the problem is.

If you do happen to experience the 429 error, here are five ways you can go about troubleshooting it:

  1. Change your default WordPress login URL.
  2. Disable the Really Simple SSL plugin.
  3. Temporarily deactivate all of your WordPress plugins.
  4. Switch to a default WordPress theme.
  5. Contact your host if you still can’t resolve the error.

Do you have any questions about how to fix the 429 Too Many Requests error in WordPress? Let’s talk about them in the comments section below!


Get all your applications, databases and WordPress sites online and under one roof. Our feature-packed, high-performance cloud platform includes:

  • Easy setup and management in the MyKinsta dashboard
  • 24/7 expert support
  • The best Google Cloud Platform hardware and network, powered by Kubernetes for maximum scalability
  • An enterprise-level Cloudflare integration for speed and security
  • Global audience reach with up to 35 data centers and 275+ PoPs worldwide

Test it yourself with $20 off your first month of Application Hosting or Database Hosting. Explore our plans or talk to sales to find your best fit.

Sooner or later, every website runs into a bug or error that’s difficult to troubleshoot. Often, that’s because the error itself doesn’t give you many details. The 429 Too Many Requests error is one such example.

We know what its most common causes are, fortunately. Since there are several potential culprits, however, you’ll often need to try more than one fix before you can resolve it.

In this article, we’re going to talk about what causes the 429 Too Many Requests error and what it looks like. Then we’ll go over five ways you can troubleshoot your website if you ever run into this particular issue. Let’s get to work!

  • What is the HTTP 429 Error
  • What Causes the 429 Too Many Requests Error
  • How to Fix the 429 Too Many Requests Error (5 Methods)

How to Fix 429 Too Many Requests in WordPress:

You’re receiving the 429 Too Many Requests error message because the user has sent too many requests in a given amount of time (could be a plugin, a DDos, or something else). It’s a server telling you to please stop sending requests.

To fix it in WordPress, try one of these 5 methods:

  1. Change your WordPress default login URL
  2. Check whether your  HTTPS internal links are causing the issue
  3. Deactivate all your WordPress plugin
  4. Switch to a default WordPress theme
  5. Contact your hosting provider

What is the HTTP 429 Error?

The HTTP 429 error is returned when a user has sent too many requests within a short period of time. The 429 status code is intended for use with rate-limiting schemes.

Check Out Our Video Guide to the 429 Too Many Requests Error

What Causes the HTTP 429 Too Many Requests Error

In some cases, when your server detects that a user agent is trying to access a specific page too often in a short period of time, it triggers a rate-limiting feature. The most common example of this is when a user (or an attacker) repeatedly tries to log into your site.

However, your server may also identify users with cookies, rather than by their login credentials. Requests may also be counted on a per-request basis, across your server, or across several servers. So there are a variety of situations that can result in you seeing an error like one of these:

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

The error may also include additional details regarding the reason for the 429 status code, and how long the user must wait before attempting to log in again. Here’s an example of what that might look like:

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>

Regardless of how the error appears, it always means the same thing – there’s a user or a snippet of code that’s overwhelming your server with too many requests. Sometimes, the problem can go away on its own. In other situations, such as those caused by issues with a plugin or Denial of Service (DDoS) attacks, you’ll need to be proactive in order to resolve the error.

The problem is that the 429 error most often affects your login page, which can make it impossible for you to access your website’s dashboard. That can make fixing it a little tricky, but it’s still achievable if you know what to try.

How to Fix the 429 Too Many Requests Error (5 Methods)

As you might imagine, we deal with a lot of WordPress support requests due to the nature of the services we offer. That means we’re intimately familiar with the 429 error, and its many potential causes.

In the following sections, we’ll cover five of the most common causes we’ve seen for the 429 Too Many Requests error in WordPress. For each potential issue, we’ll also teach you how to go about fixing it, so you can get your site back up and running quickly.

1. Change Your WordPress Default Login URL

Brute-force login attempts are one of the leading causes of the 429 error on WordPress websites. One quick way to prevent attackers from trying to break through your WordPress login page is to change its URL from the default option, so they can’t find it in the first place.

By default, you can find your login page by navigating to yourwebsite.com/wp-admin. That’s pretty easy to remember, but it’s also downright insecure since everyone on the web will know exactly where to access it.

The easiest way to change your default WordPress URL is by using the free WPS Hide Login plugin:

WPS Hide Login

WPS Hide Login plugin

Let’s walk through the process of using this particular tool. You’ll first want to install and activate the plugin just as you would any other, and then navigate to the Settings > WPS Hide Login tab in your WordPress dashboard:

Changing login URL

Changing the login URL

Here, you can easily change your login URL by typing in whatever extension you’d like to use. Make sure to stay away from easy-to-guess options such as login, wp-login, and so on. This would defeat the purpose of changing your URL in the first place, so you’ll want to come up with something unique to your site.

Note that this plugin also enables you to redirect users who try to access your old login URL to another page. For example, the default option will show anyone who tries to visit /wp-admin a 404 error page, so they’ll know they’re looking in the wrong place. When you’re done, remember to save the changes to your settings, and you’ll be good to go.

2. Disable the Really Simple SSL Plugin and Replace Your Internal Links

These days, there’s no good reason you shouldn’t have a Secure Sockets Layer (SSL) certificate set up for your website. Likewise, your entire website should load over HTTPS. This is far more secure than using the older HTTP protocol, and it can even have a positive effect on your site’s Search Engine Optimization (SEO).

When it comes to enforcing HTTPS use, you can either use the manual route – such as an .htaccess redirect – or a plugin. One of the most popular choices is Really Simple SSL:

Really Simple SSL

Really Simple SSL plugin

This plugin’s appeal is that it forces your entire website to load over HTTPS with just a couple of clicks. However, in our experience, it can also lead to occasional bugs. For instance, under some circumstances, it can trigger the 429 error we’ve been talking about.

There’s nothing inherently wrong with this plugin, but it’s definitely not the best way to implement HTTPS use. The problem is that, even if you implement HTTPS manually, you’re still left with the problem of what to do about internal links. Chances are there are a lot of internal links throughout your website, so you’ll need to find a way to replace all of them with their HTTPS versions after disabling the plugin.

First, you’ll want to take care of the plugin itself. If you have access to the WordPress admin area, disabling Really Simple SSL shouldn’t be an issue – just hit Deactivate and you’re done:

Deactivating really simple ssl

Deactivating the Really Simple SSL plugin

However since the 429 Too Many Requests Error often blocks you from accessing your dashboard, you might have to take the manual route and disable the plugin using an FTP client.

Either way, once the Really Simple SSL plugin is gone, the 429 error should be resolved. That means you can access your dashboard to set up a new plugin, which will help you replace all of your internal links in one swoop. That plugin is called Search and Replace:

Search and Replace

Search and Replace plugin

Go ahead and activate the plugin, then navigate to the Tools > Search & Replace tab in WordPress. Inside, select the wp_postmeta table, and then enter the following parameters alongside the Search for and Replace with fields respectively:

If your site uses a non-www domain:

http://yourwebsiteurl.com
https://yourwebsiteurl.com

In some cases, there may be www instances of your domain in the database as well, so we also recommend running another search and replace with the settings below.

http://www.yourwebsiteurl.com
https://yourwebsiteurl.com

If your site uses a www domain:

http://www.yourwebsiteurl.com
https://www.yourwebsiteurl.com

To replace non-www instances of your domain in the database, run another search and replace with the settings below:

http://www.yourwebsiteurl.com
https://yourwebsiteurl.com

Then select the dry run option, which will let you know how many instances of your HTTP URLs the plugin will replace within your database. After that dry run, execute the plugin for real and it will replace all the necessary links.

Keep in mind that after disabling the Really Simple SSL plugin, you’ll also need to set up a site-wide HTTPS redirect using your .htaccess file. This will enable you to implement HTTPS effectively, without the risk of further 429 errors.

3. Temporarily Deactivate All of Your WordPress Plugins

So far, we’ve focused on a single plugin that may cause the 429 error. However, in practice, any plugin could cause this issue if it makes too many external requests. If neither of the above methods leads to a solution in your case, it may be time to try disabling all of your plugins at once, to ensure that they aren’t the problem.

For this section, we’ll assume you don’t have access to your dashboard and can’t disable plugins the usual way. In that case, you’ll need to access your website via FTP using a client such as Filezilla, and navigate to the public_html/wp-content/ directory.

Inside, there should be several folders, one of which is called plugins:

Plugins folder

Plugins folder

Right click on that folder, and change its name to something else, such as plugins.deactivated. Once you do that, WordPress won’t be able to ‘find’ any of the plugins, and it will automatically deactivate all of them. However, before you try to access your site again, go ahead and create a new empty folder called plugins, so WordPress will still function as normal.

If the 429 error is gone when you next visit your site, you can assume that one of the plugins you turned off was the culprit. That means you need to narrow down which one caused the problem. To do that, you’ll want to:

  1. Delete the empty plugins directory you set up a minute ago, and restore the previous folder to its original name.
  2. Access the plugins directory.
  3. Rename one of the plugin folders within to anything else, which will deactivate only that specific plugin.
  4. Try to access your website, and see if the 429 error is gone.
  5. If the error persists, return that plugin folder to its original name and repeat steps 3 and 4 with the next one.

By moving down your list of active plugins one by one, you should eventually discover which one is the culprit. Once you figure out which plugin is behind the 429 Too Many Requests error, you can delete it altogether, which should fix the issue.

4. Switch to a Default WordPress Theme

If it turns out that a plugin isn’t the cause of your 429 error, it’s possible that your active theme might be at fault. To figure out if that’s the case, you can disable your active theme manually, forcing WordPress to switch to one of the default templates that ships with the CMS.

This process works much the same as disabling plugins manually. You’ll want to launch your trusty FTP client once more, and this time navigate to the public_html/wp-content/themes directory. Once there, look for the folder that corresponds to your active theme and rename it to anything else you want.

If you try to access your website after that, the 429 Too Many Requests error should be gone. You’ll also notice that everything looks quite a bit different. Don’t panic, though, your theme and all of its customizations are still there.

All you need to do is return the theme folder to its original name and activate it once more. If the 429 error returns afterward, then you might need to contact the theme’s developers or consider changing your site’s theme and delete it eventually.

5. Contact Your Host If You Still Can’t Resolve the Error

In some instances, it’s possible that the cause behind the 429 error originated with your server, rather than with your website itself. If this is the case for you, no amount of work on your part will be able to fully resolve the problem.

For example, some web hosts will block requests from specific third-party services or platforms. These can include search engines, crawlers, and other apps (such as Google Search Console) that make large numbers of requests to your website.

Contacting your hosting provider and asking them to allow these requests can solve the issue. Additionally, even if limitations placed on your server by your host aren’t the cause of the problem, they may be able to provide valuable insight and advice that can help you find the correct solution.

Getting the 429 Too Many Requests error message? That’s a bummer but don’t despair, we’ve got you covered with our guide!😭🤗Click to Tweet

Summary

Encountering an error on your website is always frustrating. However, as far as errors go, those with number codes at least give you enough information to start fixing them. If you run into the 429 Too Many Requests error, you’ll know that something is overwhelming your server with too many requests, so it’s only a matter of identifying what the source of the problem is.

If you do happen to experience the 429 error, here are five ways you can go about troubleshooting it:

  1. Change your default WordPress login URL.
  2. Disable the Really Simple SSL plugin.
  3. Temporarily deactivate all of your WordPress plugins.
  4. Switch to a default WordPress theme.
  5. Contact your host if you still can’t resolve the error.

Do you have any questions about how to fix the 429 Too Many Requests error in WordPress? Let’s talk about them in the comments section below!


Get all your applications, databases and WordPress sites online and under one roof. Our feature-packed, high-performance cloud platform includes:

  • Easy setup and management in the MyKinsta dashboard
  • 24/7 expert support
  • The best Google Cloud Platform hardware and network, powered by Kubernetes for maximum scalability
  • An enterprise-level Cloudflare integration for speed and security
  • Global audience reach with up to 35 data centers and 275+ PoPs worldwide

Test it yourself with $20 off your first month of Application Hosting or Database Hosting. Explore our plans or talk to sales to find your best fit.

Я столкнулся с проблемой,а именно с обходом ограничения запроса в данной ссылке https://www.instagram.com/'+ parse +'/?__a=1'.Я пробовал обойти через подмену User-agent,но у меня ничего не получилось

import json
import urllib.request
 
 
headers = {
    'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.47 Safari/537.36'
}
 
url = 'https://www.instagram.com/zuck/?__a=1'
rq = urllib.request.Request(url, headers=headers)
 
data1 = urllib.request.urlopen(rq)
data = json.loads(data1.read())
print("id",data['graphql']['user']['id'])

задан 28 янв 2021 в 21:06

justdeveloper1's user avatar

7

HTTP 429 Too Many Requests код ответа указывает, что пользователь отправил слишком много запросов за последнее временя («ограничение скорости» или «rate limiting» ).

Обойти можно:

  • сделать паузы между запросами;
  • менять user-agent;
  • менять ip через proxies

Но 429 можно встретить и при единичном запросе:

>>> import requests
>>> url = 'https://www.instagram.com/geeks_for_geeks/'
>>> headers={'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.47 Safari/537.36'}
>>> r = requests.get(url, headers)
>>> r
<Response [429]>

а при указании headers=headers:

>>> r = requests.get(url, headers=headers)
>>> r
<Response [200]>

ответ дан 28 янв 2021 в 21:24

Jack_oS's user avatar

Jack_oSJack_oS

12.4k7 золотых знаков17 серебряных знаков47 бронзовых знаков

2

1 / 1 / 2

Регистрация: 13.01.2014

Сообщений: 30

1

28.11.2014, 09:10. Показов 17922. Ответов 8


Делаю чекер задача которого банально в инди загружать страницу через get и проверять на наличие определенной строки. Но проблема в том что один поток посылает за 10-15 секунд 15 запросов и вылетает ошибка 429(означает что клиент превысил количество запросов за единицу времени) и сервер считает что это ддос атака. Практика показала что время необходимое для следующего запроса составляет 8500 мс( чтобы это узнать пришлось использовать банальные таймеры)
Я сделал обработчик для этой ошибки в нем я ставлю sleep(8500)
Но быстродействие меня кардинально не устраивает. Как можно обойти эту ошибку?

__________________
Помощь в написании контрольных, курсовых и дипломных работ, диссертаций здесь

0

Native x86

Эксперт Hardware

5175 / 3022 / 874

Регистрация: 13.02.2013

Сообщений: 9,635

28.11.2014, 15:28

2

1. Использовать прокси-сервера для отправки запросов с разных IP-адресов.
1. Кулхацкерские вопросы на этом форуме не обсуждаются.

0

1 / 1 / 2

Регистрация: 13.01.2014

Сообщений: 30

28.11.2014, 16:00

 [ТС]

3

quwy, это не «кулхацкерская» программа, это банальная автоматизация только в сетевом варианте. У меня ведь нет намерений «ложить» сервер( да и Врядли получится, с такими-то гигантами тягаться ) и о завладении какими-то секретными данными речи не идет

0

Native x86

Эксперт Hardware

5175 / 3022 / 874

Регистрация: 13.02.2013

Сообщений: 9,635

28.11.2014, 16:07

4

nontxt, в любом случае, сервер отсекает вас по IP.

И считайте, что вам повезло, что только на 8 секунд. Когда я активирую свой инструмент защиты от DDoS на моих проектах, то он банит на 10 минут, а за каждую новую попытку прорваться накидывает еще по 10 минут к существующему сроку. В результате особо активные боты попадают в блеклист на месяцы и годы.

0

1 / 1 / 2

Регистрация: 13.01.2014

Сообщений: 30

28.11.2014, 16:52

 [ТС]

5

quwy, до ддосса это проэкт сильно не дотягивает)
Ну тогда как можно узнать сколько запросов можно послать за единицу времени?
Таким способом я хотя бы смогу установить задержку между запросами, чтобы избежать ошибку 429

0

Модератор

3487 / 2610 / 741

Регистрация: 19.09.2012

Сообщений: 7,971

28.11.2014, 16:57

6

Цитата
Сообщение от nontxt
Посмотреть сообщение

Как можно обойти эту ошибку?

Можно попробовать уменьшить кол-во запросов за ед. времени, чтобы до ошибки дело не доходило.

0

1 / 1 / 2

Регистрация: 13.01.2014

Сообщений: 30

28.11.2014, 17:03

 [ТС]

7

FIL, как узнать это самое количество запросов за ед времени?

0

Модератор

3487 / 2610 / 741

Регистрация: 19.09.2012

Сообщений: 7,971

28.11.2014, 17:08

8

Например, методом научного тыка.

0

Native x86

Эксперт Hardware

5175 / 3022 / 874

Регистрация: 13.02.2013

Сообщений: 9,635

28.11.2014, 17:37

9

Цитата
Сообщение от nontxt
Посмотреть сообщение

как узнать это самое количество запросов за ед времени?

Спросите у службы техподдержки сайта

0

Если вы не можете открыть веб-страницу или веб-службу, а Google Chrome отображает 429, это ошибка, вот что вам нужно знать и что вы можете с этим сделать.

Как исправить ошибку 429, слишком много запросов

429, Это ошибка. Сожалеем, но в последнее время вы отправили нам слишком много запросов. Повторите попытку.

Ошибка 429, слишком много запросов может возникать из-за ежедневных ограничений для каждого пользователя, включая ограничения на отправку почты, ограничения пропускной способности или ограничение на количество одновременных запросов для каждого пользователя. Это также может произойти, если веб-сайт перегружен слишком большим количеством запросов и не может удовлетворить ваши.

Как правило, сообщение 429, Слишком много запросов, отображаемое в браузере Google Chrome, является не совсем ошибкой, а ответом сервера или API, сигнализирующим клиентскому приложению прекратить отправлять запросы, поскольку у него недостаточно ресурсов для их обработки. Таким образом, это своего рода защитная мера, мешающая пользователям злоупотреблять ресурсами сервера, сознательно или неосознанно, отправляя слишком много запросов на сервер.

  1. Подождите некоторое время, а затем повторите попытку.
  2. Очистите кеш и историю браузера
  3. Проверьте, активны ли прокси или другие службы VPN.
  4. Войдите через другую сеть или точку доступа.

Обнаружение ошибок, таких как Ошибка Google Chrome 429, слишком много запросов на веб-сайте, к которому вы пытаетесь получить доступ, может быть довольно неприятно. Попробуйте решения, приведенные выше, и посмотрите, поможет ли это.

1]Подождите некоторое время, а затем повторите попытку.

Подождите некоторое время, а затем попробуйте еще раз и посмотрите, поможет ли это.

2]Очистите кэш и историю браузера.

Каждый браузер подвержен некоторым недостаткам, и Chrome не является исключением из этого правила. Поврежденный кеш и файлы cookie иногда могут вызывать ошибку Google Chrome Error 429. Однако это легко исправить, очистив кеш браузера и историю.

3]Проверьте, активны ли прокси или другие службы VPN.

Подобно плагинам и надстройкам, использование прокси-сервера или службы VPN может создать проблемы совместимости и помешать вам получить доступ к веб-странице в Chrome, что приведет к коду ошибки 429. Поэтому проверьте, активны ли какие-либо прокси-серверы или другие службы VPN. Если да, вам нужно отключить их.

Вы можете убедиться в этом, зайдя на Настройки > Сеть и Интернет > VPN или прокси.

4]Войдите через другую сеть или точку доступа.

Если вышеуказанные решения не работают, попробуйте переключиться на другую сеть Wi-Fi или включить личную точку доступа. Как ни странно, этот трюк работает в большинстве случаев.

Что такое код ошибки 11 в Chrome?

Это ошибка обновления. Итак, если у вас возникли проблемы с обновлением Chrome на вашем компьютере, вы можете увидеть следующую ошибку:

  • Ошибка обновления: обновления отключены администратором.
  • Ошибка обновления (ошибка: 3 или 11) Произошла ошибка при проверке обновлений: сервер обновлений недоступен.

Что такое отклоненный код 12?

Это код, связанный с «Недействительной транзакцией по кредитной карте», который в основном проявляется, когда банк-эмитент не принимает транзакцию.

Читать дальше: исправить 500, это ошибка, повторите попытку позже Ошибка Google.

429 Слишком много запросов

Периодически у некоторых пользователей одного из самых популярных видеохостингов в мире может появляться ошибка сервера 429 на Youtube. При это возникает она не по всем веб-адресам, а только на главных страницах каналов и вкладках с подписками. Сами видео и страница поиска открываются без проблем. Проблема наблюдается на мобильных устройствах. А именно: в приложениях на телефонах и планшетах с операционными системами Android и IOS. На ПК же просто открывается пустая страница с белым фоном.

Ошибка сервера 429 на Youtube – что значит, как исправить

В чем же проблема? Что значит «Ошибка сервера 429» на Youtube, почему ее выдает и что делать, чтобы исправить ситуацию?

Youtube: «Произошла ошибка сервера 429» на телефоне — причина возникновения и способ устранения

Есть 2 основные причины, почему Youtube выдает: «Произошла ошибка сервера 429» на телефоне:

  • Неполадки в работе самих серверов хостинга;
  • Проблема с отправкой слишком большого количество запросов на хостинг с одного IP.

При этом, информационное сообщение может быть дополнено расшифровкой:

  • Проблемы с сервером (There was a problem with the server)
  • Слишком много запросов (Too many requests)

Как исправить ошибку сервера 429 на Youtube – что вообще следует делать?

В случае если проблема с сервером, то, увы, сделать ничего нельзя. Разве что – набраться терпения и пойти заняться другими делами. А как понять, что неполадка именно на стороне хостинга? Самый простой способ: связаться с кем-то из друзей или знакомых и спросить, исправно ли у них работают указанные страницы, не выскакивает ли ошибка 429. Если да – значит проблема массовая.

Также в сети интернет есть сайты, выполняющие мониторинг работоспособности популярных сайтов. Например, DownDetector. Если сбой массовый, то веб-ресурс отобразит это на графиках.

Если же проблема персонализированная и наблюдается только у вас, то пора доставать бубен и начинать разминаться перед танцами.

Рекомендации, которые могут помочь:

  1. Закрыть полностью приложение и запустить заново;
  2. Перезагрузить мобильное устройство;
  3. Проверить в магазине расширений наличие обновлений для приложения;
  4. Произвести очистку кэша приложения в настройках устройства;
  5. Перезагрузить роутер. Если проблема с большим количеством запросов. То, в случае динамического IP-адреса перезагрузка роутера его изменит, что позволит снять наложенные ограничения и пользоваться сервисом;
  6. Проверить, не используются ли на устройстве какие-либо Proxy-сервисы, подменяющие IP. Если используются – отключить. Если не используются – попробовать установить и проверить наличие ошибки.
  7. Проверить, нет ли на устройстве приложений, взаимодействующих с Youtube и способных отправлять туда запросы. Например, различные сервисы сбора статистики, парсеры и т.д.

Если указанные манипуляции не помогли, значит можно расслабиться и ничего не делать, скорее всего ошибку с кодом 429 устранить самостоятельно не удастся. Остается лишь надеяться на службу технической поддержки, которая не оставит без внимания данную неисправность.

Не нашли ответ? Тогда воспользуйтесь формой поиска:

С конца зимы 2022 года многие пользователи соцсети ВКонтакте начали сталкиваться с системным уведомлением «У вас большие запросы! Точнее, от вашего браузера их поступает слишком много, и сервер ВКонтакте забил тревогу. Телепортация обратно через 5 секунд.». О причинах появления данного уведомления и способах устранения ошибки будет рассказано в этой статье.«У вас большие запросы! Точнее от вашего браузера их поступает слишком много»: что это значит?

Содержание

  1. Значение сервисного сообщения
  2. Способы устранения ошибки
  3. Отключить VPN
  4. Подождать некоторое время
  5. Воспользоваться альтернативным ВПН
  6. Сменить браузер
  7. Отзывы
  8. Заключение

Значение сервисного сообщения

Сервисное сообщение «У вас большие запросы!» или ошибка с кодом 429 появляется в случае, если система идентифицирует IP как подозрительный. На протяжении нескольких секунд происходит анализ запроса. Если количество обращений с данного адреса не превышает допустимых норм пользователь автоматически перенаправляется на нужную страницу. Возникновение уведомления связано с API ВКонтакте. Application programming interface является интерфейсом для получения информации из базы данных ВК с помощью http-запросов и обладает частотным ограничением по числу обращений.

Из-за участившихся DDoS-атак администрация социальной сети ввела защитные алгоритмы. Поэтому если с одного IP-адреса одновременно фиксируется несколько попыток входа, автоматически активируются специальные механизмы. Пользователь уведомляется о превышении допустимого количества запросов и доступ к профилю блокируется.

Способы устранения ошибки

Многие работающие в небольших городах провайдеры выделяют один IP для всех пользователей. С одного адреса поступает большое количество запросов и ВКонтакте воспринимает их как спам или DDoS-атаку. Если ошибка «У вас большие запросы!» не связана с провайдером, исправить ее на телефоне или компьютере можно с помощью одного из следующих способов:

Отключить VPN

«У вас большие запросы! Точнее от вашего браузера их поступает слишком много»: что это значит?Главная причина уведомления о превышении допустимого числа запросов в VK – использование разных ВПН-сервисов. Если системой фиксируется большое количество попыток авторизоваться в профиле с одного IP она считает активность подозрительной и блокирует доступ к соцсети. Для обхода блокировки нужно отключить VPN перед посещением ВК. Украинским пользователям вход в сеть без VPN невозможен, поэтому избавиться от сервисного сообщения о необходимости подождать 5 секунд не получится.

Подождать некоторое время

Если ВКонтакте работал без проблем, но внезапно возникло системное уведомление о больших запросах и доступ к странице был заблокирован, стоит повторить попытку через пару часов. В большинстве случаев данный способ оказывается эффективным и позволяет беспрепятственно авторизоваться в своем профиле. Чаще всего проблемы с доступом наблюдаются в часы пиковой активности, когда огромное количество пользователей одновременно пытается прочитать новости, связаться с друзьями или посмотреть видео.

Воспользоваться альтернативным ВПН

Зачастую сообщение «У вас большие запросы!» появляется при использовании определенных ВПН-сервисов (как правило бесплатных версий ВПН-инструментов). Для решения проблемы рекомендуется воспользоваться альтернативным ВПН-сервисом. Стоит отдать предпочтение платному ВПН или менее популярному сервису, IP-адреса которого реже задействуются для посещения соцсети.

Если VPN для доступа в ВК не используется, но все равно появляется системное уведомление о больших запросах и не получается зайти в соцсеть, стоит обратиться в службу поддержки. Претензии о проблемах со входом нужно отправлять на электронную почту support@vkontakte.ru или по адресу: Санкт-Петербург, Невский проспект 28 для ООО «ВКонтакте». Ответ от техподдержки должен поступить на e-mail в течение одного-двух дней. Задать вопрос администрации социальной сети можно с помощью формы обратной связи, которая находится на странице vk.com/support?act=new.

Сменить браузер

Уведомления о больших запросах чаще всего наблюдаются в браузерах Chrome, Firefox, Brawe и Opera. Если отключение VPN не помогло исправить ошибку, стоит воспользоваться одним из российских браузеров (например, Яндекс Браузером или Атомом).

Отзывы

Сегодня в первый раз за много лет пользования VKontakte столкнулся со странной ошибкой с кодом 429. Листал новостную ленту и тут внезапно браузер перебросил меня на страницу с сообщением о большом количестве поступивших запросов. Но уже буквально через несколько секунд сайт перезагрузился и ВК снова начал нормально работать. Пока что ошибка не повторялась. Надеюсь это был разовый сбой.

Тимофей, Кисловодск

В ВК постоянно выскакивало сообщение о больших запросах и не получалось зайти на страницу. Начал искать решение в интернете. Многие говорят, что эта ошибка связана с наплывом пользователей после блокировки Инстаграма. Пробовал отключить VPN, но ничего не изменилось. Помогла смена браузера с Хрома на Яндекс. Сервисное сообщение перестало выскакивать и теперь можно полноценно пользоваться ВКонтакте как раньше.

Арсений, Краснодар

Заключение

Самая распространенная причина появления системного уведомления о большом количестве запросов поступающих от браузера и активации защитных алгоритмов ВКонтакте – использование VPN-сервиса. Для решения проблемы нужно отключить или сменить ВПН, подождать некоторое время либо повторить попытку в другом браузере. Если ни один из способов не помог устранить ошибку, стоит обратиться в службу поддержки социальной сети через электронную почту support@vkontakte.ru или специальную форму на странице vk.com/support?act=new.

What is the “429 too many requests error”?

The “429 Too Many Requests” error occurs when the user or client overwhelms the server with an excessive number of requests within a specific time frame. Additionally, if the web server’s resources are depleted and there is insufficient available memory to process the request, the 429 error occurs.

From the name itself, anyone can understand that the error “429 Too Many Requests” occurs when someone tries to access a website repeatedly and exceeds the allowed number of attempts.

The “429 Too Many Requests” error is one of the most commonly encountered errors in the digital landscape. It occurs frequently and is widely recognized and familiar to web administrators and developers.



Depending upon the browser and customizations, error 429 has too many requests that can be found in different variations. Such as,

  • 429 Too Many Requests
  • 429 Error
  • Response code 429
  • 429 server error
  • HTTP 429
  • Error 429 (Too Many Requests)

HTTP error 429

HTTP error 429

Regardless of the variation, it carries the same meaning, which is that the user or client has overloaded the server with an excessive number of requests within a limited time period.

Most of the time, the error gets resolved by itself. However, in certain conditions such as a Brute force or DDoS attack, it is important to remain vigilant and take immediate action to fix it.


What are the Causes of the 429 Error?

  • Exceeding rate limits or usage quotas: Many APIs and services impose restrictions on the number of requests a client can make in a given time period. If these limits are surpassed, the server responds with a 429 error.
  • Sending excessive requests: Rapidly sending numerous requests to a server, especially within a short duration, can trigger the 429 error as a protective measure against abuse or overloading.
  • Server-side configurations: Some servers are configured to generate a 429 error when certain conditions, such as high traffic or system load, are met.
  • API rate limiting: APIs often implement rate limiting to ensure fair usage and prevent resource exhaustion. If clients exceed the allocated request limits, the API responds with a 429 error.
  • Web scraping and crawling: Automated web scraping tools or aggressive web crawlers can generate an excessive number of requests, overwhelming the server and causing the 429 error.
  • Distributed Denial of Service (DDoS) attacks: Malicious actors orchestrating DDoS attacks flood a server with a massive volume of requests, hindering normal operations and resulting in a 429 error for legitimate users.

Impacts of 429 too many requests error

Impact on User Experience: When a user encounters a 249 error, their first impression may be that the website is unreliable and untrustworthy. This can lead to feelings of frustration and irritation and there will be a sudden drop in web traffic as well.

Potential consequences for Website owners: If error 429 is too frequent, it can lead to dissatisfaction in users, loss of trust, negative brand reputation, and ultimately affect business objectives and revenue.

SEO and SERP ranking considerations: If error 429 is not resolved quickly and continues to persist consistently, it can have a negative impact on your website’s search engine rankings, reduce its visibility, and consequently affect organic traffic.


Read: 🚩 How to improve your WordPress site’s SEO


As mentioned earlier, the “429 Too Many Requests” error message appears when a user sends an unusually high number of requests within a specific time frame. This can occur due to various factors, such as problems with plugins, a potential DDoS attack, or other reasons.

This error is essentially the server’s way of requesting you refrain from sending additional requests.

To resolve this issue in WordPress, you can try one of the eight troubleshooting methods mentioned below:

In this section, you will learn about the best 9 troubleshooting methods to fix the “429 Too Many Requests” error.

  • Clear Browser Cache
  • Flush DNS Cache
  • Check for rate limit by APIs
  • Temporary Disable All WordPress plugins
  • Change the default WordPress Login URL
  • Retry sending request after sometime
  • Try using the default WordPress theme
  • Restore the website from backup
  • Contact your web hosting provider

1. Clear Browser Cache

The browser’s cache plays an important role in improving website loading speed and user experience. When you visit a website, the browser saves various resources such as HTML files, images, CSS stylesheets, JavaScript files, and more into its cache memory.

The next time you visit the same website, instead of fetching all the resources again from the web server, the browser retrieves them from its cache. This reduces the amount of data that needs to be downloaded, resulting in faster page loading times.

However, if the cached data becomes outdated or accumulates excessively, it can lead to the occurrence of “429 Too Many Requests” errors. Therefore, the initial step you should take is to clear your browser cache and check if it resolves the issue.

If you are using Chrome browser, follow the steps given below:


Read: 🚩 Browser Market Share & Usage Statistics


Step 1: Depending on your browser, Go to the settings menu.

In Google Chrome, for example, you can find the settings menu by clicking on the three vertical dots located in the upper right corner of the window.

Step 2: To proceed, select “More tools” and then click on “Clear browsing data”.

Clear browsing data in Chrome

Clear browsing data on Chrome

Step 3: A pop-up window will be displayed, and you can choose all three options located under the “Basic” section as depicted in the picture below. These options consist of “Browsing history,” “Cookies and other site data,” and “Cached images and files.

Step 4: Click on “Clear data” to initiate the process.

Clearing data in Google Chrome

Clearing data in Google Chrome

2. Flush DNS Cache

If clearing your browser cache doesn’t work, you can try flushing your DNS cache. The DNS cache plays a vital role in speeding up website access. It stores recently accessed domain names and their corresponding IP addresses locally on a device. This allows subsequent requests for the same domain to be resolved quickly without querying the DNS server again.

But, if you have made a large number of requests before the DNS cache TTL naturally expires, it can trigger an HTTP error 429.

2.1. For Windows 10 and Windows 11 users:

Step 1: Open the Run command by pressing the Windows key and R. Alternatively, you can search for it in the Start menu.

Step 2: Type “cmd” and hit Enter to open the Command Prompt.

Opening Command Prompt in Windows

Opening Command Prompt in Windows

Step 3: Once the Command Prompt window is open, type “ipconfig/release” to release your current IP address.

Using Ipconfig command on CMD

Ipconfig command on CMD

Step 4: Next, type “ipconfig/flushdns” to release the DNS cache.

Step 5: Type “ipconfig /renew” to obtain a new IP address.

ipconfig renew

ipconfig renew

Step 6: Type “netsh int ip set dns” and hit Enter to reset your IP settings.

Step 7: Finally, type “netsh winsock reset” to restore the Winsock Catalog.

netsh winsock reset

netsh winsock reset

Step 8: After completing these steps, restart your computer to ensure the changes take effect.

2.2. For MacOS users:

Step 1: First of all, open the system preference options on your Mac. If you have Gas Mask installed, it can make searching for system-related tasks easier.

Step 2: Next, navigate to the Ethernet tab and click on the advanced options.

Step 3: Under the TCP/IP tab, you will find the option to release a DHCP lease. Clicking on this option will allow you to clear out the local DNS on your Mac.

Renew DHCP in MacOS

Renew DHCP lease in macOS

Step 4: Go to Utilities > Terminal and enter the command to clear the local DNS cache.

Step 5: The command for flushing the local DNS cache is “dscacheutil -flushcache”.

Step 6: Once you have entered the command, there will be no separate success or failure message that pops up. However, in most cases, the cache will be cleared without any major issues.


3. Check for rate limit by APIs

If you are a developer, you can easily prevent the triggering of 429 errors by having a clear understanding of the specific rate limit set by APIs. It is highly recommended you must check for rate limit document action of APIs.

These rate limits define the maximum number of requests that can be made within a given timeframe. By staying within these allowed thresholds, you can ensure that they do not exceed the limit and trigger the 429 error.

By being aware of the rate limits and managing their requests accordingly, You can maintain a smooth and uninterrupted flow of interactions with the APIs or services, avoiding any disruptions caused by the 429 error.


4. Temporary Disable All WordPress plugins

When attempting to resolve the “429 Too Many Requests” error, it is important to remember the possibility of a faulty WordPress plugin causing conflicts and triggering the issue. Therefore, consider deactivating or disabling all your WordPress plugins as part of the troubleshooting process.

In this case, let us assume you are not able to access your WordPress admin dashboard and are unable to disable the plugin the usual way.

The alternate solution you can do is to try accessing your website via an FTP client i.e. Filezilla and open the wp_content folder.

  1. To do this navigate to public_html/wp-content/ directory.

Too Many Login failed Attempts

wp-content

2. Scroll down to find the wp-content folder. Double Click to open it.

3. Once open the folder, you will see a lot of files with the plugin folder named the security plugin whichever you are using.

4. Select and right-click on the plugin folder for options. Choose Rename and change the name of the plugin. Once the plugin folder name gets changed, WordPress will no longer read it.

5. It is better to rename it as Disabled_plugin.

Once done with everything, save the changes and now you are done.


5. Change the default WordPress Login URL

One common cause of the “429 Too Many Requests” error on WordPress websites is brute-force login attempts. These attempts occur when attackers repeatedly try to gain unauthorized access to your WordPress login page. To protect against such attacks, it’s recommended to change the default login URL.

By default, the login page can be accessed through URLs like yourwebsite.com/wp-admin or yourwebsite.com/wp-login. The problem is that these default URLs are widely known, making it easier for attackers to target your website. However, by changing the login URL to something less obvious and more unique, you can make it harder for malicious individuals to find your login page.

Check out our detailed and dedicated blog post on “WordPress Login URL: How to Find, Modify and Manage It?”.


6. Retry sending request after sometime

To fix an HTTP 429 error, the simplest approach is to give it some time and wait before making another request. When this error occurs, there is often a “Retry-after” header included in the response. It tells you how long you should wait before attempting another request. The waiting period can vary, ranging from a few seconds to several minutes.

For example, let’s say you receive a 429 Too many requests error message asking you to retry after (3600s) or 1 hr.

HTTP/1.1 429 Too Many Requests
Content-type: text/html
Retry-After:3600

So, when you encounter a 429 error, just take a little breather and wait patiently for the specified time mentioned. After the waiting period is over, you can try making the request again without any issues.


7. Try using the default WordPress theme

If you have determined that the installed WordPress plugins are turned out to be okay, there is a possibility that your active theme could be causing issues. This is because a poorly coded WordPress theme can conflict with the plugins and trigger the “429 Too Many Requests” error.

The process is quite similar to manually disabling plugins, as mentioned earlier. The only difference is that you need to navigate to the “public_html/wp-content/themes” directory.

1. Within the themes folder, locate your active theme folder.

2. Right-click on the active theme folder and choose the “Rename” option.

3. Rename the folder with any name you prefer, such as “disable_theme”.

After completing the necessary steps mentioned above, when you try to access your website again, you should no longer encounter the “429 Too Many Requests” error. However, you may notice some differences in the appearance.

But don’t worry, all your customizations and themes will still be preserved.


8. Restore the website from backup

Having a backup of your website is essential as it provides protection against any data loss, malware attacks, accidental website damage, and security breaches. This is the main reason, why we always highly recommend you to back up your website from time to time.

By restoring a site backup, you have the ability to undo any changes that might be causing such as HTTP 429 errors, and restore your website like it was before. It acts as a safety net, ensuring that you can easily recover from any unexpected issues and maintain the smooth operation of your website.

At WPOven, you do not have to worry about backup your website manually. Our Automatic Amazon-based S3 Backup system allows for faster backups and easier downloads.

8.1. How do I restore a backup for my site at WPOven

To restore a backup for your site, you can either :
1) Drop a support ticket and our support team will be happy to restore the backup for you.

OR

2) You can download the desired backup and restore it by logging in through SFTP.


9. Contact your web hosting provider

If the “429 Too Many Requests” error persists despite trying all the troubleshooting methods mentioned above, the final step you can take is to reach out to your web hosting service provider and ask for their support. They can assist in identifying the cause of the error and addressing any underlying issues.


How you can Avoid the 429 Error?

  • Monitoring request volumes and usage patterns: Regularly monitoring request volumes, analyzing usage patterns, and setting appropriate thresholds help maintain compliance with rate limits and prevent the 429 error.
  • Implementing caching mechanisms: Caching frequently requested data or responses reduces the need for repeated requests, minimizing the chances of encountering rate limit restrictions.
  • Using efficient request batching and pagination techniques: Grouping multiple requests into a single batch or implementing pagination techniques can reduce the overall number of requests and mitigate the risk of triggering the 429 error.

Summary

Undoubtedly, encountering any type of error while browsing the web can be irritating and frustrating. However, the silver lining is that certain error codes provide clues about what went wrong and how to approach fixing it.

For instance, the “429 Too Many Requests” error signifies that the server has been overwhelmed by an excessive number of requests. If not resolved promptly, it can disrupt third-party APIs and negatively impact your SEO efforts. Therefore, it is crucial to address this error promptly.

The key to resolving such errors lies in identifying the source of the problem and taking appropriate action accordingly.

Here is an summary on How you can fix 429 too many requests error.

  • Clear Browser Cache
  • Flush DNS Cache
  • Check for rate limit by APIs
  • Temporary Disable All WordPress plugins
  • Change the default WordPress Login URL
  • Retry sending request after sometime
  • Try using the default WordPress theme
  • Restore the website from backup
  • Contact your web hosting provider

If you have any questions about the 429 error or would like to share some tips, please feel free to let us know in the comment section below.


Frequently Asked Questions

How do I get rid of 429 too many requests?

You can easly get rid of 429 too many requests by simply following any of the methods mentioned below :
1. Clear Browser Cache
2. Flush DNS Cache
3. Check for rate limit by APIs
4. Temporary Disable All WordPress plugins
5. Change the default WordPress Login URL
6. Retry sending request after sometime
7. Try using the default WordPress theme
8. Restore the website from backup
9. Contact your web hosting provider

What is 429 too many requests?

The “429 Too Many Requests” error occurs when the user or client overwhelms the server with an excessive number of requests within a specific time frame. Additionally, if the web server’s resources are depleted and there is insufficient available memory to process the request, the 429 error occurs.

What is error 429 in Chrome?

Error 429 in Chrome refers to the “Too Many Requests” error. It occurs when the user sends an excessive number of requests to a website within a certain time frame, exceeding the allowed limit set by the server. This error is a way for the server to ask the user to reduce the frequency of their requests and prevent overwhelming the server.


При взаимодействии с веб-ресурсами можно столкнуться с различными проблемами. Одна их таких проблем – ошибка с кодом 429 Too Many Requests. Существует две самые распространенные причины возникновения этой ошибки сервера, с которыми нам предстоит разобраться самостоятельно. 

Причины появления ошибки сервера 429

DDoS-атаки

Начать следует с того, что чаще всего ошибка 429 сопровождается надписью «The user has sent too many requests in a given amount of time», что означает превышение ограничений по запросам к сайту. Соответственно, именно так происходит предотвращение DDoS-атак, которые и являются основной причиной появления рассматриваемой проблемы. Помимо самого кода, вы увидите и несколько других параметров:

  1. Общее количество запросов.

  2. Запросы с конкретного IP-адреса в секунду.

  3. Количество одновременных запросов.

  4. Общее количество запросов с одного IP-адреса.

Если же сама ошибка появляется при использовании поисковых систем или сторонних онлайн-сервисов, которые запрашивают доступ к сайту, вполне возможно, что их блокировка осуществляется со стороны хостинга в связи с тем, что количество запросов превышает ограничение. Для ее решения вам потребуется обратиться напрямую в техническую поддержку с просьбой разрешить подобные запросы.

В случае, когда есть уверенность в том, что ошибка http 429 появилась именно из-за атак на ваш ресурс, советую ознакомиться с отдельным материалом, в котором вы узнаете, как обезопасить себя от DDoS эффективными инструментами и банальными мерами предосторожности.

Подробнее: Способы защиты от DDoS-атаки

Некорректная работа плагинов WordPress

Вторая распространенная причина, которая может быть связана с регулярным появлением неполадки 429, – некорректное функционирование плагинов под управлением CMS WordPress. Для решения этой проблемы потребуется выполнить несколько несложных действий. 

Для начала по очереди отключайте каждый установленный скрипт через меню управления этими компонентами. Параллельно проверяйте, появляется ли ошибка. Да, на выполнение этой задачи может уйти много времени, однако это самый эффективный метод выявления плагина, который является триггером. Отметим, что сразу несколько компонентов могут вызывать проблему, поэтому постарайтесь проверить их все.

Отключение плагинов ВордпрессЧто касается использования плагинов, то тут всегда лучше подключать только проверенные и качественные решения. Со списком таких плагинов предлагаю ознакомиться в материале по следующей ссылке.

Если после проверки неполадка все еще не исчезла, переключитесь на стандартную тему WordPress, которая называется Twenty Seventeen. Это действие поможет понять, связана ли ошибка сервера 429 со скриптами, которые входят в пользовательский шаблон оформления сайта. В том случае, когда трудность действительно была связана с темой, придется переделать ее вручную или же подыскать новый вариант для своего веб-ресурса.

Действия со стороны обычного пользователя

Обычный пользователь, который сталкивается с неполадкой 429 при попытке просмотреть конкретный сайт, не сможет ничего предпринять самостоятельно, чтобы решить ее. Однако, если есть возможность, стоит обратиться напрямую к владельцу интернет-ресурса или администраторам, сообщив им о появившейся ошибке. Так вы дадите понять, что сайт работает не так, как это нужно, и ускорите процесс решения трудностей.

Страница недоступна, ошибка 429

Ошибка HTTP с кодом 429 – неприятная ситуация, которая может коснуться каждого владельца сайта. Из приведенного выше материала вы поняли, что существует две основные причины, которые могут ее вызывать. Теперь остается только разобраться с каждой из них и провести проверочные работы, чтобы оперативно исправить сложившуюся ситуацию.

Понравилась статья? Поделить с друзьями:
  • Как обрабатывать ошибки запросов js
  • Как обозначается орфографическая ошибка на полях
  • Как обойти ошибку 404 на сайте
  • Как обработать ошибку powershell
  • Как обойти ошибку 403 при парсинге