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

При взаимодействии с веб-ресурсами можно столкнуться с различными проблемами. Одна их таких проблем – ошибка с кодом 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 – неприятная ситуация, которая может коснуться каждого владельца сайта. Из приведенного выше материала вы поняли, что существует две основные причины, которые могут ее вызывать. Теперь остается только разобраться с каждой из них и провести проверочные работы, чтобы оперативно исправить сложившуюся ситуацию.

Clearing out the browser cache is highly recommended

by Cesar Cadenas

Cesar has been writing for and about technology going on for 6 years when he first started writing tech articles for his university paper. Since then, his passion… read more


Updated on March 23, 2023

Reviewed by
Vlad Turiceanu

Vlad Turiceanu

Passionate about technology, Windows, and everything that has a power button, he spent most of his time developing new skills and learning more about the tech world. Coming… read more

  • Note that HTTP Error 429 is a fairly common issue on the Internet.
  • It happens whenever you send too many requests to a server.
  • This guide will show you how to bypass Error 429 so you can continue browsing the Internet.

Strugling with your current browser? Upgrade to a better one: OperaYou deserve a better browser! 350 million people use Opera daily, a fully-fledged navigation experience that comes with various built-in packages, enhanced resource consumption and great design. Here’s what Opera can do:

  • Easy migration: use the Opera assistant to transfer exiting data, such as bookmarks, passwords, etc.
  • Optimize resource usage: your RAM memory is used more efficiently than in other browsers
  • Enhanced privacy: free and unlimited VPN integrated
  • No ads: built-in Ad Blocker speeds up loading of pages and protects against data-mining
  • Gaming friendly: Opera GX is the first and best browser for gaming
  • Download Opera

HTTP or Hypertext Transfer Protocol is essentially the very foundation of the internet. It’s the method of how websites transfer information from the servers that house them to your computer.

To simplify the process, your computer sends out an HTTP request so it can get the information to load a website, and in return, the page gives you an HTTP response.

However, sometimes errors can arise with HTTP. One of the most famous of these is HTTP 404 Page Not Found. This error appears whenever a page on a website is missing or has been moved.

For the purposes of this guide, we’ll be focusing on HTTP Error 429.

What is HTTP Error 429 Too Many Requests?

HTTP Error 429 is actually less of an error and more of a response to overactivity. This particular error appears when your computer sends out way too many requests to access the website.

A common place where this happens is in high-security portions of a website. If you try to log in over and over again, the website will deny you access. Fortunately, fixing this error is very easy to do.

This guide will go over the simplest ways to fix HTTP Error 429.

Quick tip:

A solution to this request can be to use a different browser such as Opera that is not only safer but also has a built-in VPN in order to change you IP address and make the servers see you as being located in a different part of the globe, eliminating the security error.

Apart from the fact that is does not put you through a hard setup process, this browser lets you directly and precisely achieve your goal.

Opera

Use this browser for productivity, safety and let it accompany you in your day to day tasks.

How do I fix Error 429?

1. Just wait

Honestly, one of the best things that you can do to get past an Error 429 is to simply wait. Try again at a later time. A lot of the times when a browser gives you the error, there will be a message informing you to try again later.

After waiting several minutes, try to log in again and see if that works. If that didn’t help, try out one of the following methods.

2. Clear browser cache and history

  1. On Microsoft Edge, click the three dots in the upper hand to bring down the menu.
  2. Click Settings in the menu.
  3. In Settings, click Privacy, search, and services on the left hand side.
  4. Scroll down to Clear browsing data.
  5. Click Choose what to clear.
  6. Select Cached images and files.
  7. Set the preferred Time Range and click Clear now.
  8. On Google Chrome, enter chrome://settings/clearBrowserData into the address bar. Hit Enter on your keyboard.
  9. In the following window, select Cached images and files.
  10. Set the Time Range at the top of the small window, then click Clear data.
  11. On Firefox, type about:preferences#privacy into the address bar.
  12. Scroll down to Cookies and Site Data.
  13. Click Clear Data.
  14. Select Cached Web content, then click the Clear button.

Clearing out the browser cache is highly recommended. The above section showed you how to do it on Microsoft Edge, Google Chrome, and Mozilla Firefox, which are some of the most popular browsers on Windows.

How do I avoid 429 requests?

Stop sending so any requests. Again, HTTP 429 isn’t necessarily an error. It’s a message from the server asking you to stop spamming requests and asking for access.

Granted, it’s possible that the server hasn’t been configured correctly and has a rather high rate limiter. If you feel that’s the case, then we recommend contacting the server admin to see if you can get that fixed.

Feel free to leave a comment below if you have any questions on other errors or if you have some other fixes that you recommend. Also, feel free to leave comments about guides you’d like to see or information on other web browsers.

Still having issues? Fix them with this tool:

SPONSORED

If the advices above haven’t solved your issue, your PC may experience deeper Windows problems. We recommend downloading this PC Repair tool (rated Great on TrustPilot.com) to easily address them. After installation, simply click the Start Scan button and then press on Repair All.

newsletter icon

Я столкнулся с проблемой,а именно с обходом ограничения запроса в данной ссылке 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

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

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 – неприятная ситуация, которая может коснуться каждого владельца сайта. Из приведенного выше материала вы поняли, что существует две основные причины, которые могут ее вызывать. Теперь остается только разобраться с каждой из них и провести проверочные работы, чтобы оперативно исправить сложившуюся ситуацию.

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. Показов 17993. Ответов 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 устранить самостоятельно не удастся. Остается лишь надеяться на службу технической поддержки, которая не оставит без внимания данную неисправность.

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

Как владелец веб-сайта вы время от времени сталкиваетесь с сообщением об ошибке. Некоторые из этих ошибок будет относительно просто исправить, а другие – сложно. Возьмем, к примеру, ошибку HTTP 429.

Что означает ошибка HTTP 429 и как ее исправить

Источник изображения

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

Чтобы убедиться, что вы понимаете и можете решить эту проблему, мы рассмотрим, что означает ошибка 429 и каковы ее наиболее распространенные решения.

Что такое ошибка HTTP 429?

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

Ответ 429 технически не является ошибкой – это ответ сервера, интерфейса прикладного программирования (API) или плагина, который сообщает клиентскому приложению о прекращении отправки запросов, потому что у них просто недостаточно ресурсов для его приема в это время. Клиентское приложение обычно относится к веб-сайту или приложению, но также может относиться к отдельным пользователям, таким как администратор сайта, посетитель сайта или хакер.

Например, если пользователь слишком часто пытается получить доступ к странице на вашем веб-сайте в течение короткого периода времени, ваш сервер может отправить ошибку 429. В случае попытки грубой силы входа в систему, когда хакер неоднократно пытается войти на ваш сайт, ограничение скорости является важной мерой безопасности. Но ограничение скорости также сработает, если ваш сайт использует слишком много ресурсов на сервере или службе общего хостинга. Если, например, с IP-адреса получено более 50 запросов в течение одной минуты, PayPal Sandbox заблокирует этот IP-адрес на следующие пять минут.

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

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

Как исправить ошибку HTTP 429

  1. Подождите, чтобы отправить еще один запрос.
  2. Реализуйте экспоненциальную отсрочку.
  3. Установите свой собственный предел дросселирования.
  4. Свяжитесь с вашим хостинг-провайдером.

Большинство приведенных ниже шагов направлены на предотвращение, а не на исправление ошибки HTTP 429 задним числом. Взглянуть.

1 Дождитесь отправки другого запроса.

Самый простой способ исправить ошибку HTTP 429 – дождаться отправки другого запроса. Часто этот код состояния отправляется с заголовком «Retry-after», который указывает период времени ожидания перед отправкой другого запроса. Он может указывать всего несколько секунд или минут.

Вот пример, который просит клиента подождать час перед отправкой другого запроса.

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>Only 100 requests per hour per logged in user is allowed on this website. Try again soon.</p>
  </body>
</html>

2 Реализуйте экспоненциальный откат.

Если заголовок «Retry-after» не отправляется, и вы не знаете, сколько времени ждать перед попыткой, вам следует реализовать повторные попытки с экспоненциальным откатом. Используя этот подход, ваше приложение не будет немедленно повторять неудавшийся запрос; вместо этого он выполнит серию повторных попыток с постепенно увеличивающимся временем ожидания между каждой попыткой. Когда запрос будет окончательно принят, вы узнаете, какое время или скорость ожидания приемлемы.

Вы можете добавить код для реализации этого подхода или использовать такой инструмент, как Celery, который имеет встроенную функцию экспоненциальной задержки.

Что означает ошибка HTTP 429 и как ее исправить

Источник изображения

3 Установите свой собственный предел дросселирования.

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

Хотя этот подход чаще всего используется сторонними API или платформами для предотвращения превышения клиентскими приложениями своих ограничений, он также может быть полезен для ограничения вашего собственного потребления сторонних API или ресурсов сервера. Фактически, вы можете установить более строгий лимит регулирования для себя, чтобы предотвратить выход за пределы сервера, API или другой службы, которую вы используете. Это особенно хорошая идея, если вы используете дорогостоящий API, например Twitter API, и не хотите выходить за рамки своей политики использования.

4 Свяжитесь с вашим хостинг-провайдером.

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

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

Устранение ошибки HTTP 429

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

Источник записи: https://blog.hubspot.com

Есть интересная задача:
Есть сайт, к которому летит огромное кол-во запросов ( запросы асинхронны ) летят они для того, чтобы собрать информацию и вернуть на клиент. Один запрос возвращает информацию за 30 мсс +-, после 100 запроса сайт вешает 429 ошибку, то есть рейтлимит.
Как можно если не обойти, то увеличить кол-во отправляемых запросов на поинт, при этом не теряя в скорости?
Прокси, сессии, хосты, TLS и так далее, интересно послушать любые ответы


  • Вопрос задан

    01 мар.

  • 92 просмотра

Понравилась статья? Поделить с друзьями:
  • Как обойти 401 ошибку
  • Как пользоваться считывателем ошибок на авто
  • Как обозначить речевую ошибку
  • Как обозначить пунктуационную ошибку
  • Как обозначаются орфографические ошибки и пунктуационные