question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Call failed: Could not connect to Bittrex server

See original GitHub issue

Http 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:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
JKorfcommented, Nov 20, 2017

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.

1reaction
JKorfcommented, Nov 20, 2017

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);

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found