# Cert issuer: WARNING - HTTP Error 503: Service Temporarily Unavailable

**URL:** <https://community.blockcerts.org/t/cert-issuer-warning-http-error-503-service-temporarily-unavailable/2073>\
**Category:** Technical\
**Created:** [August 24, 2019, 2:21pm UTC](https://community.blockcerts.org/t/cert-issuer-warning-http-error-503-service-temporarily-unavailable/2073 "2019-08-24T14:21:50Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![vinnayb29](https://avatars.discourse-cdn.com/v4/letter/v/5f8ce5/32.png) [@vinnayb29](https://community.blockcerts.org/u/vinnayb29)\
**Post date:** [August 24, 2019, 2:21pm UTC](https://community.blockcerts.org/t/cert-issuer-warning-http-error-503-service-temporarily-unavailable/2073/1 "2019-08-24T14:21:50Z")

</div>

I’m getting testnet insufficient funds even though I have funds in the address

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

---

<div class="post-metadata">

**Author:** ![aronning](https://avatars.discourse-cdn.com/v4/letter/a/47e85d/32.png) [@aronning](https://community.blockcerts.org/u/aronning)\
**Post date:** [August 26, 2019, 4:22pm UTC](https://community.blockcerts.org/t/cert-issuer-warning-http-error-503-service-temporarily-unavailable/2073/2 "2019-08-26T16:22:32Z")

</div>

I can investigate later this week, maybe a testnet api went down. I thought there would be backups in place, but if it didn’t come back up, you may need to connect to your own bitcoin testnet node.

---

<div class="post-metadata">

**Author:** ![quekyaojing](https://avatars.discourse-cdn.com/v4/letter/q/aeb1de/32.png) [@quekyaojing](https://community.blockcerts.org/u/quekyaojing)\
**Post date:** [August 29, 2019, 8:46am UTC](https://community.blockcerts.org/t/cert-issuer-warning-http-error-503-service-temporarily-unavailable/2073/3 "2019-08-29T08:46:38Z")

</div>

Look like I also met the same problems. Any solutions to this?

---

<div class="post-metadata">

**Author:** ![ronchik](https://avatars.discourse-cdn.com/v4/letter/r/48db29/32.png) [@ronchik](https://community.blockcerts.org/u/ronchik)\
**Post date:** [August 29, 2019, 9:36am UTC](https://community.blockcerts.org/t/cert-issuer-warning-http-error-503-service-temporarily-unavailable/2073/4 "2019-08-29T09:36:24Z")

</div>

There is no backup api for testnet, it only use [blockexplorer](https://github.com/blockchain-certificates/cert-issuer/blob/b25a00a98c196f45575c3d3d9e01b45bf5469217/cert_issuer/blockchain_handlers/bitcoin/connectors.py#L258)  
So far, i cannot find a workaround without changing the cert-issuer source

you can try to provide the “–blockcypher\_api\_token” and write a override method (spendables\_for\_address) in [BlockcypherBroadcaster](https://github.com/blockchain-certificates/cert-issuer/blob/b25a00a98c196f45575c3d3d9e01b45bf5469217/cert_issuer/blockchain_handlers/bitcoin/connectors.py#L57)

The override method should look like this:

> ```
> def spendables_for_address(self, address):
> """
> Return a list of Spendable objects for the
> given bitcoin address.
> """
> logging.debug('spendables_for_address %s', address)
> spendables = []
> url_append = "?unspentOnly=true&token=%s&includeScript=true" % self.api_token
> url = self.base_url +'/addrs/'+ address + url_append
> result = json.loads(urlopen(url).read().decode("utf8"))
> for txn in result.get("txrefs", []):
> coin_value = txn.get("value")
> script = h2b(txn.get("script"))
> previous_hash = h2b_rev(txn.get("tx_hash"))
> previous_index = txn.get("tx_output_n")
> spendables.append(Spendable(coin_value, script, previous_hash, previous_index))
> return spendables
> 
> ```

If Anthony have time to further check, he probably will provide us a better solution

---

<div class="post-metadata">

**Author:** ![aronning](https://avatars.discourse-cdn.com/v4/letter/a/47e85d/32.png) [@aronning](https://community.blockcerts.org/u/aronning)\
**Post date:** [August 29, 2019, 3:12pm UTC](https://community.blockcerts.org/t/cert-issuer-warning-http-error-503-service-temporarily-unavailable/2073/5 "2019-08-29T15:12:57Z")

</div>

Created a ticket on it here: [https://github.com/blockchain-certificates/cert-issuer/issues/150](https://github.com/blockchain-certificates/cert-issuer/issues/150)

Will try to get to it tomorrow.

---

<div class="post-metadata">

**Author:** ![Fernando](https://avatars.discourse-cdn.com/v4/letter/f/779978/32.png) [@Fernando](https://community.blockcerts.org/u/Fernando)\
**Post date:** [September 16, 2019, 10:37pm UTC](https://community.blockcerts.org/t/cert-issuer-warning-http-error-503-service-temporarily-unavailable/2073/6 "2019-09-16T22:37:24Z")

</div>

Hello…

I’m having the same problem… Any solutions to this ?

---

<div class="post-metadata">

**Author:** ![aronning](https://avatars.discourse-cdn.com/v4/letter/a/47e85d/32.png) [@aronning](https://community.blockcerts.org/u/aronning)\
**Post date:** [September 17, 2019, 4:21pm UTC](https://community.blockcerts.org/t/cert-issuer-warning-http-error-503-service-temporarily-unavailable/2073/7 "2019-09-17T16:21:02Z")

</div>

I haven’t had a chance to add other testnet api’s yet. Running your own testnet node and pointing cert-issuer should get you around this issue if you weren’t able to add any additional api’s either.

---

<div class="post-metadata">

**Author:** ![aronning](https://avatars.discourse-cdn.com/v4/letter/a/47e85d/32.png) [@aronning](https://community.blockcerts.org/u/aronning)\
**Post date:** [September 19, 2019, 8:32pm UTC](https://community.blockcerts.org/t/cert-issuer-warning-http-error-503-service-temporarily-unavailable/2073/8 "2019-09-19T20:32:36Z")

</div>

The lastest version, 2.0.19, should solve this problem.
