Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chain.io not working because of firewall #6

Open
mapodev opened this issue Aug 26, 2019 · 12 comments
Open

chain.io not working because of firewall #6

mapodev opened this issue Aug 26, 2019 · 12 comments

Comments

@mapodev
Copy link

mapodev commented Aug 26, 2019

The API has a firewall set up that's why it's not working anymore.

I tried to change it to

  response = connection:request("GET", bitcoinRequestUrl(bitcoinAddress), {})
  json = JSON(response)
  balance = json:dictionary()['balance']
  return balance
end


-- Helper Functions
-- function convertSatoshiToBitcoin(satoshi)
--   return satoshi / 100000000
-- end

function cryptocompareRequestUrl()
  return "https://api.coinmarketcap.com/v1/ticker/bitcoin/?convert=EUR"
end

function bitcoinRequestUrl(bitcoinAddress)
  return "https://blockexplorer.com/api/addr/" .. bitcoinAddress .. "/"
end

But my extenstion is then not showed anymore. Someone help? Does it depend on the signature?

@derausdingsda
Copy link

yes, signature is the issue. you can avoid this by accepting extensions without signature in moneymoney or @Jacubeit solves this ;)

The same problem occures at the litecoin extension https://github.com/zafai/Litecoin-MoneyMoney

Is it also possible to use the extension with chain.io and the cloud flare firewall?

@raspulton
Copy link

Thanks! hey how do I "accept extensions without siganture" in moneymoney? I reinstalled the bitcoin extension but it still fails. Help would be very welcome!

@derausdingsda
Copy link

Bildschirmfoto 2019-08-27 um 08 54 08

@Jacubeit
Copy link
Owner

Jacubeit commented Aug 27, 2019

Thx guys! I uploaded v0.2 - should be signed
https://github.com/Jacubeit/Bitcoin-MoneyMoney/releases

@derausdingsda
Copy link

@Jacubeit Does it work for you? With chain.io I get:
"The server responded with the error message: Service Temporarily Unavailable. Retrying..."

As the user @mapodev wrote "chain.io not working because of firewall"

@Jacubeit
Copy link
Owner

weird - you are right - chain.io does respond with an error.
@derausdingsda can you try release v0.1 pls?

@derausdingsda
Copy link

v0.1 works for me, but it takes al lot of retrys because of bad requests by blockexplorer.

chain.io was very stable but it seems that they are using cloudflare now that produces errors.

@raspulton
Copy link

Screenshot 2019-08-27 at 21 24 02

Thank you @Jacubeit ! Version 0.1 works! Do you guys know why my Version of MoneyMoney (2.3.17) does not have the option to "Digitale Signatur von Extensions überprüfen"?

@derausdingsda
Copy link

I have the same version. Maybe you should ask moneymoney at [email protected], they have good support.

@JimLoose
Copy link

JimLoose commented Sep 4, 2019

unfortunately it still doesn't work because of

grafik

any solution or better provider?

@JimLoose
Copy link

JimLoose commented Sep 9, 2019

it would be great if you guys can please replace chain.so with: https://www.blockchain.com/api/q

Example:
https://blockchain.info/q/addressbalance/XXXXXX?confirmations=6
make sure to add the dot starting 8 letters from the end for the right balance.

Thank you for this great extension @Jacubeit

@christophbach
Copy link

Any progress here?

@JimLoose What do you mean with "add starting dot"? I tried to use the helper function convertSatoshiToBitcoin(), but I can't get it to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants