Too Many Requests for url: https://rinkeby.infura.io/v3/56xxd4

Hi, recently, I always get the error: Too Many Requests for url: https://rinkeby.infura.io/v3/56xxd4, I have applied for a new API key, but I still got this error. My code is here:

tx_receipt = self.w3.eth.waitForTransactionReceipt(tx_hash, timeout=110)

Error message are:

tx_receipt = self.w3.eth.waitForTransactionReceipt(tx_hash, timeout=110)
  File "/usr/local/lib/python3.7/site-packages/web3/eth.py", line 328, in waitForTransactionReceipt
    return wait_for_transaction_receipt(self.web3, transaction_hash, timeout, poll_latency)
  File "/usr/local/lib/python3.7/site-packages/web3/_utils/transactions.py", line 101, in wait_for_transaction_receipt
    txn_receipt = web3.eth.getTransactionReceipt(txn_hash)
  File "/usr/local/lib/python3.7/site-packages/web3/eth.py", line 340, in getTransactionReceipt
    [transaction_hash],
……
response = make_request(method, formatted_params)
  File "/usr/local/lib/python3.7/site-packages/web3/middleware/exception_retry_request.py", line 104, in middleware
    return make_request(method, params)
  File "/usr/local/lib/python3.7/site-packages/web3/providers/rpc.py", line 83, in make_request
    **self.get_request_kwargs()
  File "/usr/local/lib/python3.7/site-packages/web3/_utils/request.py", line 35, in make_post_request
    response.raise_for_status()
  File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 941, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 429 Client Error: Too Many Requests for url: https://rinkeby.infura.io/v3/56xxd4

Is it because I have a bad network or something else?
How can I avoid this scenario? Thanks for any idea!

Hi @Skyge welcome to our community site! It looks like your code is hitting a rate-limit based on the error message on the last line. Can you email me your full project ID and I can look into it more closely? michael@infura.io