V
V
Vitaly Slyusar2020-08-20 13:08:59
Google Chrome
Vitaly Slyusar, 2020-08-20 13:08:59

How to fix Chrome Extension 429 Too Many Requests on ajax request?

There was a problem sending data from the Chrome Extension to your server.
For some reason, too many requests are leaving, causing the server to return 429 Too Many Requests.
Although I only send it once.
With each update, the number of requests grows.
How to fix it?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
V
Vitaly Slyusar, 2020-08-20
@slusarvitaliy

Found the reason. Maybe someone will be useful. I put a method with ajax inside chrome.tabs.onUpdated.addListener in backgrounde.
It was not the right decision. The listener kept firing and re-calling my method.
I hope someone will help.

K
kirillinyakin, 2020-08-20
@kirillinyakin

So throw off the code of the AJAX request itself, maybe there is an error there?

A
Alexander, 2015-05-19
@SashaSkot

There is more about this
here httpd.apache.org/docs/2.0/misc/rewriteguide.html

Y
Yury Martynov, 2015-05-19
@martynov-yury

you need to enable mod_rewrite
and add to .htaccess:
## Enable
RewriteEngine On
RewriteBase /
## Exceptions under which the rule below will be skipped
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteCond %{REQUEST_URI} !\.(js|css|gif|png |jpg|jpeg|ico)$
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
## The rule that redirects the request to the get parameter ?url=* (note the RewriteBase )
RewriteRule ^(.*)$ index.php?url=$1 [L,QSA]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question