Call failed: Could not connect to Bittrex server
See original GitHub issueHttp error 400 (bad request) is returned from signalr api when I try to connect
10:47:09:206 | Error | Socket error: StatusCode: 400, ReasonPhrase: 'Bad Request', Version: 1.1, Content: System.Net.Http.NoWriteNoSeekStreamContent, Headers:
{
Date: Mon, 20 Nov 2017 09:47:09 GMT
Transfer-Encoding: chunked
Connection: keep-alive
Cache-Control: no-cache
Pragma: no-cache
X-Content-Type-Options: nosniff
X-Content-Type-Options: nosniff
Strict-Transport-Security: max-age=15768000
X-XSS-Protection: 1; mode=block
X-Download-Options: noopen
Server: cloudflare-nginx
CF-RAY: 3c0a7c717d844304-MXP
Content-Type: text/html
Expires: -1
}
10:47:09:214 | Warning | Call failed: Could not connect to Bittrex server
My code:
let ws = new BittrexSocketClient()
ws.SubscribeToMarketDeltaStream(pair.symbol, fun x -> printfn "%A" x)
Could it be related to cloudflare?
Downgrading to 1.2.0
which worked previously doesn’t solve the problem
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
How to Fix bittrex by bittrex inc App Not Working / Not Loading ...
The bittrex by bittrex inc App Won't Load / Open (Loading Error, Server Timeout Error, Connection Reset Error, Connection Failed Error).
Read more >Problem with your connection. : r/Bittrex
Everytime I try to sign into my account it fails and says there is a problem with my connection. But, my connection is...
Read more >Bittrex API
See the error code and response data for more details. 401 - Unauthorized, The request failed to authenticate (example: a valid api key...
Read more >Site Status
This page displays status information for Bittrex's wallets and markets, updated on a 5-minute interval. If you are experiencing a problem that is...
Read more >Bittrex (@BittrexExchange) / X
Please note: the updates to this section DID NOT change the restricted ... save on network fees, improve platform performance & help reduce...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
No problem. I’ve pushed a fix for the connection issue, this should mean you should be able to connect again. It is however a temporary fix and I don’t know how long it will hold. Bittrex is running an older version of the socket implementation on an alternative URL(https://socket-stage.bittrex.com). This endpoint works as the old one did before the changes, but I expect the alternative endpoint to be changed or go offline somewhere in the future.
I hope this helps you while I try to figure out how to fix the problem. I created a new Issue for this: #8.
The subscribe method returns a success indicator (in C#):
var ws = new BittrexSocketClient(); var result = ws.SubscribeToMarketDeltaStream(pair.symbol, data => Console.WriteLine(data)); if(result.Success) Console.WriteLine("Subscribed"); else Console.WriteLine("Oh no, something went wrong: " + result.Error.ErrorMessage);