-
Notifications
You must be signed in to change notification settings - Fork 189
Errorr Message: Negotiate Unknown, 503 #67
Comments
Getting this too. They said they were attacked (https://twitter.com/ramikawach/status/906184766969356289), which prompted them to CloudFlare all their endpoints, including the signalr ones. |
is there a workaround for this? |
Spam the PUSH api i guess |
@LRonHubs what do you mean with Spam the PUSH api?? |
I think he means using the Rest API for grabs. I'd be careful of overuse,
as it may get your key banned though.
…On Sep 8, 2017 2:17 PM, "algoscale1" ***@***.***> wrote:
facing same issue
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#67 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGJjzBEEg7dtX5HasLnB-CPOr5whi8G5ks5sgYSrgaJpZM4PRah8>
.
|
@TimLaMason I was using the API more than one week and I never received any error, or banned ... meaby is it a temporal problem?? I created other key and the error is the same |
Then endpoint is giving '503 - Service Temporarily Unavailable'. I presume they will reactivate it later, or else enable functionality for account auth headers. I have an alert set for if it reactivates normally. Keep us posted if anyone here's anything. |
I mean using the rest api for frequent requests in place of the websocket,
if it is down. Most api's will ban your key if you make requests more than
one every ten seconds or so (just an example).
I'm not sure exactly what bittrex's policy is. I'm just saying for those
who are thinking of "Spaming the rest api" in place of the signalr hub, it
may not be a good idea.
…On Sep 8, 2017 2:26 PM, "Miguel Angel Salinas Gancedo" < ***@***.***> wrote:
@TimLaMason <https://github.com/timlamason> I was using the API more than
one week andI never receive any error, or banned ... meaby is it a temporal
problem??
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#67 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGJjzJHAv3r1E8-kpBVCefLZNKfMkrLmks5sgYbNgaJpZM4PRah8>
.
|
How can I receive the complete error from bittrex? |
SignalR websocket hubs we're primarily designed for .net. if you code a c# hub client it outputs the error message, and you can also enable tracing to see the raw feed. |
My client I have this code:
But not receive any erro detail only the: Error Message: Negotiate Unknown But where is the callback that receive this error??? how can I get this error in my code??? |
@junkomatic how do you code for receive the error: '503 - Service Temporarily Unavailable'? |
503 is an http error response code that literally means "Service Temporarily Unavailable". There's not much more data than that. |
SignalR websocket hubs we're primarily designed for .net. if you code a c#
hub client it outputs the error message, and you can also enable tracing to
see the raw feed.
…On Sep 8, 2017 3:16 PM, "Miguel Angel Salinas Gancedo" < ***@***.***> wrote:
@junkomatic <https://github.com/junkomatic> how do you code for receive
the error: '503 - Service Temporarily Unavailable'
because i only reveive the error: Error Data: 503
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#67 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AWRK7NkCHsuCJKKL87P3i_JrD2mPHhYCks5sgZKdgaJpZM4PRah8>
.
|
@masalinas You can go into the signalr-client node module and print the request out.
Is just a catch all error. What Bittrex is returning is the CloudFlare HTML page saying that they're verifying your connection. I believe the only thing we can do is wait. |
i've created a pull request for the signalR lib to at least fix the pass of binding errors into the onerror serviceHandler. the 503 issue i haven't looked more closely yet. |
Hmm, why using this service https://www.websocket.org/echo.html WS bittrex is available? |
As already mentioned, the websocket endpoint is currently protected by cloudflare's anti bot system. It is possible to bypass it, by executing a request to the negotiate endpoint (or any page on bittrex really) just as a regular browser would and letting cloudflare do its thing (how cloudflare's bot protection works is explained here: link) then grab the identity cookie and the clearance cookie and send those as the Cookie header together with the User-Agent header (which must be the same as in the request used to obtain the cookies) with the negotiate and websocket connect request. As an example, for python cloudflare-scrape does just that. |
@AlxGDev how is that a solution? My bot has a lot of responsibility and this really worries me that I could just be taken offline for several hours... |
Does anyone know if bittrex have commented on this? |
Need a fix for this asap |
There is also a .net fix:
https://github.com/elcattivo/CloudFlareUtilities
Similar to python's cfscrape. This may help.
On Sep 9, 2017 7:23 AM, "Swailem95" <notifications@github.com> wrote:
Need a fix for this asap
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#67 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGJjzLq13g2upPlxv4gFI7lKHczR13gGks5sgnUkgaJpZM4PRah8>
.
|
@AlxGDev thanks for your suggestion! It also worked for me. For anyone interested: the goal is to add your cookie and user-agent headers to the signalR websockets connection here: https://github.com/mwwhited/signalr-client-nodejs/blob/master/WhitedUS.SignalR/WhitedUS.signalR/signalR.js#L295 I copied the bittrex and signalr node modules intop my project and modified them a little to achieve this. But you could also edit the signalr-client file directly (not recommended, but the quickest way). |
Just replace connectws() function. For the future we could add headers opt. To get cookie without browser you can use nightmare.js
|
@CyberWlf I did exactly that. But it's still not working for me... |
@RickyHan double check everything. If Bittrex works in your browser and you copied user-agent and the cookie correctly it should work. |
@RickyHan Hey, I just got it to work on my server. Make sure that the IP you used to get the For the server I used this python library (https://libraries.io/github/Limero/cloudflare-scrape), to grab User-Agent and |
Did you make it work with python? Thanks for your help |
@0xecute If it throws that error, it is connected, so it seems to not be an issue with Cloudflare's protection. I guess make sure you're invoking the call correctly. |
@armandohg help me, i run
|
Thanks to @CyberWlf and @armandohg, combining your two fixes works great! |
Now let's combine them! Your connectws():
Your main code:
|
Can we expect an official update to the module soon though? |
@Swailem95 Take a look: https://github.com/n0mad01/node.bittrex.api |
Well that sucks. Maybe someone's going to open a PR and fix it himself. That would be great. |
Just need to update you code @CyberWlf, because response.request.headers["cookie"] replies with __cfduid AND cf_clearance. |
@glaucoheitor It's a hot fix, not an official solution. BTW, what's the problem with __cfduid ? It seems working |
I know it's a hotfix. I am trying to use this here too. |
@glaucoheitor Works on my side. I don't see any reason why __cfduid could interrupt the process. You can update my solution btw :) |
That what's weird, cause it works directly on the module file. I was trying to update your solution, but I dont have that much knowledge. lol |
@glaucoheitor double check that you copied the exact code. Especially connectws() function. I use new "headers" option |
Any body help, i try the way @armandohg, it show error :
|
For those looking for an integrated fix for this issue I have committed it to https://github.com/dparlevliet/node.bittrex.api Important note: this makes the websocket connection asynchronous so please see the updated documentation https://github.com/dparlevliet/node.bittrex.api#websockets There is a unit test added which you can test with If you have any further comments or suggestions please add them to here dparlevliet#1 |
Thank you @dparlevliet |
Thank you @dparlevliet |
So for those that have issues with this on python, for me this works now: Please correct me if I am wrong! :)
|
Nicely done cfscrape do the job. I don't know why we got this error the bittrex_socket is on and everything was working fine until yersterday. |
I think its because Bittrex enabled Cloudflare today again :) so thats why I was working with cfscrape today |
Is this still an issue? Just wondering since it's been months since there was any activity here. |
Error Message: Negotiate Unknown
Exception: undefined
Error Data: 503
I get this error when trying to connect to WebSockets. Is this something on bittrex's end? If so is it a permanent thing?
The text was updated successfully, but these errors were encountered: