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.

Consistently get 503 errors using BittrexSocketClient

See original GitHub issue

Using:

var socketClient = new BittrexSocketClient();
socketClient.SetLogVerbosity(LogVerbosity.Debug);
await socketClient.SubscribeToAllMarketDeltaStreamAsync(...)

I keep getting this:

03:12:02:046 | Debug | Going to subscribe to all markets
03:12:02:102 | Debug | Starting connection to bittrex server
03:12:02:137 | Debug | Socket state: Disconnected -> Connecting
03:12:02:396 | Debug | Socket state: Connecting -> Disconnected
03:12:02:403 | Warning | Couldn't connect to Bittrex server, going to try CloudFlare bypass
03:12:02:449 | Debug | Socket closed
03:12:08:326 | Debug | CloudFlare cookies retrieved, retrying connection
03:12:08:332 | Debug | Socket state: Disconnected -> Connecting
03:12:08:952 | Error | Socket error: HTTP/1.1 503 Service Temporarily Unavailable
03:12:08:992 | Error | Socket error: Socket is not connected
03:12:13:534 | Debug | Socket state: Connecting -> Disconnected
03:12:13:541 | Debug | Socket closed
03:12:13:556 | Warning | Call failed: Could not connect to Bittrex server

This is also after I try visiting the website through a browser to trigger the CloudFlare check on the browser. BittrexClient meanwhile seems to work fine.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
JKorfcommented, Jan 2, 2018

I´ve managed to fix it, but I had to use the ClientWebsocket class to get it to work. This means that sadly the stream connection only works on platforms where the WebSocket protocol is available. Windows 7 doesn´t have this, so the current implementation only works on Windows 8 +.

I’ll try to fix it without relying on the ClientWebsocket class, but for now it should work at least on Windows 8/ Windows 10. See #36.

0reactions
omerfarukcommented, Jan 2, 2018

I have same issue if i open browser and go bittrex then my apps working but if i dont do this it working sometimes

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix 503 Service Unavailable Error in 7 Steps
In this tutorial, learn what the 503 service unavailable error means and 7 proven methods to fix it to get your website back...
Read more >
Fix Websocket connection for platforms without ...
Consistently get 503 errors using BittrexSocketClient #27 ... on win7 i get the following error when using longpolling.
Read more >
How to Fix the HTTP Error 503 Service Unavailable
The HTTP Error 503 status code indicates that the server is currently unable to handle the request. Find out more about the causes...
Read more >
503 Service Unavailable Error: What It Is and How to Fix It
A 503 Service Unavailable Error is an HTTP response status code indicating that a server is temporarily unable to handle the request.
Read more >
What is HTTP error 503 and how do you fix it?
Seeing a 503 error indicates that something has stopped your browser from accessing the server of the affected website, and is typically an ......
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