thebotguys / golang-bittrex-api

This repository is a golang porting of v2.0 Bittrex API
Apache License 2.0
109 stars 12 forks source link

IsAPIAlive #37

Open tylorzhou opened 6 years ago

tylorzhou commented 6 years ago

i tried to test the API "IsAPIAlive" it fails with error code 503. but if i use the chrome browser to access the url directly on the same machine and it works. for example:https://socket.bittrex.com/signalr/ping?_=1517272050

did i miss something?

Code-exE-Software commented 6 years ago

@tylorzhou @saniales Bittrex added cloudflare ddos protection a while ago... even to their socket endpoints. Without a mechanism to negotiate that on socket connection, not gonna be able to connect.

I'd bet if you cleared your cookies in chrome, and then tried navigating to your link, you'd get the cloudflare page.

saniales commented 6 years ago

Brief explanation of 503 error is here

Code-exE-Software commented 6 years ago

@saniales In general that is correct, but I guaruntee that if you inspected the []byte value of the response body in this case, you'd see the html for the cloudflare ddos protection page.

saniales commented 6 years ago

@technicalviking thank you