The request could not be satisfied

Problem description:
Everything was good. But couple hours ago I got this error

The request could not be satisfied.


The Amazon CloudFront distribution is configured to block access from your country. We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner.
If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation.

Generated by cloudfront (CloudFront)
Request ID: fBzcRkdwGMwOHPtxJGOZ13ZnhuF4qC3NlCQuqxBLmJddmMYg8Fz_6A==

Expected behavior:

Actual behavior:

Steps to reproduce:

Bug appears at this link:

Browser/OS/Device:

your error seems to talk about region-specific errors. Are you using a VPN? Did you travel?

But I guess this error form your server

here is full description of the error:

Traceback (most recent call last):
File “/home/runner/AdequateQuickInterface/venv/lib/python3.10/site-packages/ccxt/base/exchange.py”, line 597, in fetch
response.raise_for_status()
File “/home/runner/AdequateQuickInterface/venv/lib/python3.10/site-packages/requests/models.py”, line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://api.bybit.com/v5/asset/coin/query-info

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “main.py”, line 156, in
bot()
File “main.py”, line 34, in bot
price = phemex.fetch_ticker(symbol_phe)[‘last’]
File “/home/runner/AdequateQuickInterface/venv/lib/python3.10/site-packages/ccxt/bybit.py”, line 1942, in fetch_ticker
self.load_markets()
File “/home/runner/AdequateQuickInterface/venv/lib/python3.10/site-packages/ccxt/base/exchange.py”, line 1430, in load_markets
currencies = self.fetch_currencies()
File “/home/runner/AdequateQuickInterface/venv/lib/python3.10/site-packages/ccxt/bybit.py”, line 1277, in fetch_currencies
response = self.privateGetV5AssetCoinQueryInfo(params)
File “/home/runner/AdequateQuickInterface/venv/lib/python3.10/site-packages/ccxt/base/types.py”, line 26, in unbound_method
return _self.request(self.path, self.api, self.method, params, config=self.config)
File “/home/runner/AdequateQuickInterface/venv/lib/python3.10/site-packages/ccxt/base/exchange.py”, line 2999, in request
return self.fetch2(path, api, method, params, headers, body, config)
File “/home/runner/AdequateQuickInterface/venv/lib/python3.10/site-packages/ccxt/base/exchange.py”, line 2996, in fetch2
return self.fetch(request[‘url’], request[‘method’], request[‘headers’], request[‘body’])
File “/home/runner/AdequateQuickInterface/venv/lib/python3.10/site-packages/ccxt/base/exchange.py”, line 615, in fetch
self.handle_http_status_code(http_status_code, http_status_text, url, method, http_response)
File “/home/runner/AdequateQuickInterface/venv/lib/python3.10/site-packages/ccxt/base/exchange.py”, line 1613, in handle_http_status_code
raise ErrorClass(self.id + ’ ’ + method + ’ ’ + url + ’ ’ + codeAsString + ’ ’ + reason + ’ ’ + body)
ccxt.base.errors.RateLimitExceeded: bybit GET https://api.bybit.com/v5/asset/coin/query-info? 403 Forbidden

ERROR: The request could not be satisfied

403 ERROR

The request could not be satisfied.


The Amazon CloudFront distribution is configured to block access from your country. We can't connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner.
If you provide content to customers through CloudFront, you can find steps to troubleshoot and help prevent this error by reviewing the CloudFront documentation.

Generated by cloudfront (CloudFront)
Request ID: r0I8oNQlz_r9uBXU0HePgj_9FeVQQGCrE6mMjMoJWes7So0ntYnSGw==

that looks like a bitcoin(?) ratelimit error, which was also categorized under a much broader category as “region restrictions and unauthorized access”. However, the main error is actually hidden above, which details a “403 Client Error: forbidden for url”.
An HTTP 403 error means that you were denied access to the given resource (https://api.bybit.com/v5/asset/coin/query-info), possibly due to an incorrect API key. check that you used the right API key, and that you referenced it correctly. Replit Secrets are case-sensitive

API keys are correct.
It was working yesterday during a couple hours, and everything was ok before unexpected error.

did anything change? try reverting to "yesterday"s version and try again. if not, then its probably an API issue.

No change. API works form PyCharm

can I change location of the server in Replit?

not sure if it will work, but you can try. Do you code in Asia?

I have the same error : The Amazon CloudFront distribution is configured to block access from your country.
We can’t connect to the server for this app or website at this time. There might be too much traffic or a configuration error. Try again later, or contact the app or website owner.