-
Notifications
You must be signed in to change notification settings - Fork 51
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
Bos miner.web.grpc.get_pool_groups() return OSError: [WinError 121] #103
Comments
OSError 121 is refused connection, you have to update your miner to the latest version, since older versions don't have gRPC support. I would also recommend updating pyasic to the latest version, as that will fix some other bugs. |
Also, on recent versions, it will become |
What are BOSerWebAPI and BOSMinerRPCAPI? I mean that why do you need to create two classes for Bos? |
I see that use |
Regarding your first question; The reason for 2 BOS+ classes is that they dropped support for S9 (and technically X17) prior to implementing gRPC, so in order to maintain compatibility in a simple way with S9s, I split the classes out into something for S9 and something for newer models. This is slightly buggy with X17 models, because they are updatable to new versions but have tuner issues, so it's troublesome to decide between implementations there. Regarding active pool status, yes, that's the correct way to do that then. I've considered trying to add that to miner data, but it seems complicated to structure that in a useful way, and it's not something I would want to put into miner config... |
Getting this added into miner data, some miners already have it, and more are getting it soon. |
This should be fixed in latest, give it a test and let me know if you still have issues. |
Describe the bug
When i try get miner's pools status by miner.api.pools() i got empty dict then i try to use
miner.web.grpc.get_pool_groups()
i got
OSError: [WinError 121]
Screenshots
Traceback (most recent call last):
Desktop (please complete the following information):
Miner Information (If applicable):
Additional context
i use pyasic 0.46.0
The text was updated successfully, but these errors were encountered: