Access Denied - Ethereum Ropsten

Hi Guys,

We have been working with Ethereum Ropsten network for the last since months and everything has worked like a charm. Since 2 days ago, suddenly it not worked anymore.
Checking the code we found that we are being blocked from Cloudflare and we are getting the following exception:

Please enable cookies.

Error 1020 Ray ID: 51da023f6e626cda • 2019-09-29 00:58:27 UTC

Access denied

What happened?

This website is using a security service to protect itself from online attacks.

Cloudflare Ray ID: 51da023f6e626cda • Your IP: XX.71.XX.130 • Performance & security by Cloudflare

About the problem we consider that its an external problem from Ropsten and we would like to know your feedback with this security access problem.

Kind regards,

Danny Suarez

Hi Guys,

I have found a solution. If you face this error just add a header in all your request to this API https://ropsten.etherscan.io/api (It took me more than 2 days found this which is really simple) … Additionally, you can add your API KEY https://etherscan.io/myapikey.

File=cert_issuer/blockchain_handlers/ethereum/connectors.py

headers = {
‘User-Agent’: “PostmanRuntime/7.17.1”,
‘Accept’: “/”,
‘Cache-Control’: “no-cache”,
‘Postman-Token’: “267dd7be-7f3f-4d67-a51c-05152aa8e8fc,8f8b84b0-3df1-4656-9480-c31e99d270d2”,
‘Host’: “ropsten.etherscan.io”,
‘Accept-Encoding’: “gzip, deflate”,
‘Cookie’: “__cfduid=d33064099a72a08ae6f9197c790da62d21569724532”,
‘Connection’: “keep-alive”,
‘cache-control’: “no-cache”
}
response = requests.get(broadcast_url, headers=headers)

Added a new ethereum api, myetherwallet, to the mix. Should be resolved. In version 2.0.20 if you’re using pypi.