Skip to content
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

Axon fix #1586

Merged
merged 3 commits into from
Nov 20, 2023
Merged

Axon fix #1586

merged 3 commits into from
Nov 20, 2023

Conversation

ifrit98
Copy link
Contributor

@ifrit98 ifrit98 commented Nov 20, 2023

Catches a KeyError exception where axon's do not have the route attached that is being queries.

This causes issues downstream and makes the error difficult to identify.

Now return a synapse populated with 404 and a helpful error message.

# Start of catching all exceptions, updating the status message, and processing time.
except Exception as e:
# Log the exception for debugging purposes.
bittensor.logging.trace(f"Forward exception: {traceback.format_exc()}")
bittensor.logging.error(f"Forward exception: {traceback.format_exc()}")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a note, I think we should start making use of the different levels of logging, ie.

logging.error("Key Error")
logging.trace(traceback)

This way users will be notified when theres an error vs a developer being notified with the traceback of the full error

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sweet, I'll change this

@ifrit98 ifrit98 merged commit 8722bdb into release/6.3.0 Nov 20, 2023
0 of 8 checks passed
@ifrit98 ifrit98 mentioned this pull request Nov 20, 2023
@ifrit98 ifrit98 deleted the axon-fix branch December 14, 2023 20:39
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.

2 participants