Skip to content

Handle known errors (SubtokenDisabled) #451

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

Open
wants to merge 1 commit into
base: staging
Choose a base branch
from

Conversation

thewhaleking
Copy link
Contributor

Adds a matching table to handle cryptic errors messages (namely SubtokenDisabled).

@thewhaleking thewhaleking requested a review from a team May 16, 2025 15:41
@camfairchild
Copy link
Contributor

camfairchild commented May 16, 2025

Maybe we can add a ref to the docs here
@MichaelTrestman

Docs should indicate how to enable the subnet via SNOwner call.

@basfroman
Copy link
Contributor

I wouldn't apply customization for this or any other subtensor errors which is listed here.
The best solution is to improve the error description on the subtensor side. This will be a centralized error storage center. But with a more understandable description.
I suggest opening an issue to change the description.

@basfroman
Copy link
Contributor

Maybe we can add a ref to the docs here @MichaelTrestman

Docs should indicate how to enable the subnet via SNOwner call.

A great solution would be to have a page like https://docs.bittensor.com/subtensor-nodes/subtensor-error-messages, but not only for custom subtensor errors, but for all from here.
Then it would be possible to automatically create a link to the error by an #anchor that would be the name of the error. The resulting error would be attached to the message.
like example https://docs.bittensor.com/subtensor-nodes/subtensor-error-messages#SubtokenDisabled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants