MetacoSA / QBitNinja

An Open Source and powerful blockchain API
MIT License
68 stars 42 forks source link

QBitNinja.GetBalance Server Issue #87

Closed john-bal closed 5 years ago

john-bal commented 5 years ago

Greetings, i have a website which uses asp.net request to check bitcoin balance using QBitNinja library.

//c# Client_QBitNinja.GetBalance(new BitcoinPubKeyAddress(PublicKey), true).Result;

Now this works fine on my locally installed IIS

when i upload the application to my host server it generates exception error as follows:

System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 23.102.12.43:443

any idea how to solve it?

NicolasDorier commented 5 years ago

Should work now, I restarted the servers.

john-bal commented 5 years ago

Thanks , it apparently seems a problem related to my hosting server provider , BECAUSE it works fine on my pc + it works fine on a free hosting server . It only generates exception error on my main hosting provider (!&1 Ionos)

john-bal commented 5 years ago

May i ask the proxy address of the QBitNinja so i can include it in my config file ?

NicolasDorier commented 5 years ago

what do you mean

john-bal commented 5 years ago

Since my hosting provider sets a security firewall that prevents http requests from communication with external source, i need to set QBitNinja's server proxy in the config file such as:

  <proxy
    usesystemdefault="True"
    proxyaddress="http://[HERE QBitNinja's Server numbers ]"
    bypassonlocal="True"
  />
NicolasDorier commented 5 years ago

just pass the URL as HTTPS in new QBItNinjaClient.

NicolasDorier commented 5 years ago

https://api.qbit.ninja/