-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
There was an error invoking Hub method 'c2.queryexchangestate'.' #17
Comments
Hi |
'use strict' const util = require('util'); let client = new SignalRClient({ client.on('orderBook', function(data){ client.on('orderBookUpdate', function(data){ //-- start subscription |
When running, in most of the times it would print: === Subscribing to 'BTC-ETH' pair However, in some cases it would print: |
Also, I'm wondering if this has been done before (I'm sure it has but haven't seen an example), what I'd really like to do is to have a stream of latest order book, i.e. have a subcscibeOrderBook that returns a stream of the latest order book (by getting the full state and applying updates on it). |
This message
To see if it gives more information ? Also, calling |
And regarding your other question (latest order book). You need to do the following :
|
Sure, thanks, I know what to do, I was just wondering if anyone has already done it as it seems quite useful and common. |
I think I found the issue. I have another connection to bittrex not using the ws client that is sending a request every second for a full order book, after shutting it down and only running the code above I don't get the error at all. Sorry about that, and thanks for your prompt response and assistance! |
Can be easily implemented using a |
hello, I'm trying to use your library, first of all, thank you very much for all the hard work of managing signalR and all edge cases, but looks like for me it doesn't work as smooth as it should be, when I start listening to all markets in ~4-5 minutes I get this:
I forked your library to catch that event and re-subscribe, but it doesnt help, after some point these errors just keep appearing, any idea how to fix or what can be the reason? here is my constructor:
|
Hi @igorlimansky |
@aloysius-pgast hey, thanks for reply! attached logs, hope it can help.. |
Could you also paste the code used to subscribe ? |
@aloysius-pgast
I used to subscribe to all pairs at once, but it doesnt work at all then |
Do you also have the list of pairs you're using ? |
In #17 (comment), I see you're getting an error got |
Symbol was changed on June 15, 2018 https://bittrex.zendesk.com/hc/en-us/articles/360004823112-Rebranding-and-ticker-symbol-changes-Bitcoin-Cash-BCC-Legends-LGD-and-Bitswift-SWIFT- |
good catch! I'll disable that pair and try again https://pastebin.com/C66YZykP |
Could you provide a more user-friendly pair list (ie: json-based only) ;) ? |
I attached the list of pairs which are currently supported (357 pairs) |
Following pairs are not online right now so they will probably return an error when trying to subscribe
|
Thanks for your help, I really appreciate it. and here is runtime logs: https://pastebin.com/QSq4uxc0 as you see there were no errors for dead pairs (pairs which didnt receive any updates since long time), I'll attach full logs with client.logAllWsMessages(true) a bit later, maybe they can tell more what happened |
I tested with the pairs from https://github.com/aloysius-pgast/bittrex-signalr-client/files/3314074/pairs.json.txt and it has been working correctly without QueryExchangeState error for almost 2 hours |
I finally got an error on QueryExchangeState after 2h30. I pushed a new version on master, inspired by your fork. I also added a new constructor option |
Got the same error again, after 1h30. I'll try again with |
Wow, that was really fast! Sorry for pause, was validating I did everything right. Thank you so much, I spent plenty of time before reaching out.. But so far locally it seems to be working (after ~1h of testing), I deployed it to servers and monitoring hows going, will write more tomorrow about results of testing. |
@aloysius-pgast As you see connection works just for few minutes and then dies without any notice so resubscribing happens only on timeout Meanwhile I'm trying to get more logs from websocket channel to understand whats happens, but it produces too much noise and I get ~6mb logs after 10mins of running and hard to follow what I need to find there P.S. I'm subscribing only to hardcoded markets from here: https://github.com/aloysius-pgast/bittrex-signalr-client/files/3314074/pairs.json.txt
|
Hi. Unfortunately, watchdog was added because sometimes Bittrex silently stops sending data without any disconnection or anything. Maybe I should check if it's possible to define a per-pair watchdog |
Thanks a lot for help, looks like I managed to make it work with my internal watchdog, also I checked out your implementation of watchdog and see that its not that hard to implement per-pair watch, I can do a PR |
Great. A PR which lets user defined per-pair watchdog without breaking backward compatiblity (global watchdog) is welcome. |
hey, its been a while... sorry I got stuck with side task and still busy, just wanted to notice I didnt forget and will get back to this soon in a week or so :) |
For the record, |
Hello,
When calling client.subscribeToMarkets(['BTC-ETH']) many times it fails (not always though) with the following error:
Could not query exchange for pair 'BTC-ETH' (might be an invalid pair) : err = 'There was an error invoking Hub method 'c2.queryexchangestate'.'
Any idea why?
Thanks,
Z
The text was updated successfully, but these errors were encountered: