bitpay / node-bitpay-client

A Node.js module and command line client for interacting with BitPay's Cryptographically Secure API
102 stars 95 forks source link

Bitcoin address not available, try again later #82

Closed vmatekole closed 7 years ago

vmatekole commented 7 years ago

I am using this module within MeteorJS, deployed in Docker. I have created a key pair and generated config. Copied the latter to the home dir of my Docker image and have also enforced config on the client

client = bitpay.createClient privKey, {
      config: {
        apiHost: 'bitpay.com',
        apiPort: 443,
        forceSSL: true
      }
    }

I consistently get a response - error: 'Bitcoin address not available, try again later' } when attempting to create invoices. When I try with the cli, there is no issue.

vmatekole commented 7 years ago

I resolved this issue... Unfortunately, the error message is misleading... The root cause was sending a string as opposed to an integer in the create invoice request.

SilverFire commented 6 years ago

For me the reason was sum equals zero.