blockchain-certificates / cert-issuer

Issues Blockcerts using either the Bitcoin or Ethereum blockchain
MIT License
413 stars 208 forks source link

Bitcoin Testnet API (Blockexplorer) not working #150

Closed ghost closed 5 years ago

ghost commented 5 years ago

Coming from the forums: https://community.blockcerts.org/t/cert-issuer-warning-http-error-503-service-temporarily-unavailable/2073/3

INFO - This run will try to issue on the bitcoin_testnet chain
INFO - Set cost constants to recommended_tx_fee=0.000600,min_per_output=0.000028,satoshi_per_byte=250
INFO - Processing 2 certificates
INFO - Processing 2 certificates under work path=C:/Users/Vinay/vinay_env/cert-issuer/data/work
WARNING - HTTP Error 503: Service Temporarily Unavailable
WARNING - address myt59jbZC6PiXyef38q2sbdPM57eKd1r2M has a balance of 0
INFO - Total cost will be 133500 satoshis
ERROR - Please add 133500 satoshis to the address myt59jbZC6PiXyef38q2sbdPM57eKd1r2M
ERROR - Please add 133500 satoshis to the address myt59jbZC6PiXyef38q2sbdPM57eKd1r2M
Traceback (most recent call last):
File “C:/Users/Vinay/vinay_env/venv/Lib/site-packages/cert_issuer-2.0.17-py3.7.egg/cert_issuer/issue_certificates.py”, line 44, in
tx_id = main(parsed_config)
File “C:/Users/Vinay/vinay_env/venv/Lib/site-packages/cert_issuer-2.0.17-py3.7.egg/cert_issuer/issue_certificates.py”, line 36, in main
return issue(app_config, certificate_batch_handler, transaction_handler)
File “C:/Users/Vinay/vinay_env/venv/Lib/site-packages/cert_issuer-2.0.17-py3.7.egg/cert_issuer/issue_certificates.py”, line 16, in issue
transaction_handler.ensure_balance()
File “C:\Users\Vinay\vinay_env\venv\lib\site-packages\cert_issuer-2.0.17-py3.7.egg\cert_issuer\blockchain_handlers\bitcoin\transaction_handlers.py”, line 51, in ensure_balance
raise InsufficientFundsError(error_message)
cert_issuer.errors.InsufficientFundsError: Please add 133500 satoshis to the address myt59jbZC6PiXyef38q2sbdPM57eKd1r2M

Seems to be because the testnet explorer we use is down or not working. Should have backups in place.

ghost commented 5 years ago

Should work now.