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

fix: return error instead of infinitely hanging monitor #388

Merged
merged 2 commits into from
Oct 7, 2024

Conversation

jhkimqd
Copy link
Contributor

@jhkimqd jhkimqd commented Oct 7, 2024

Description

This PR fixes an issue where polycli monitor will infinitely hang in cases where it can connect to a valid RPC endpoint, but does not receive valid responses. This PR allows monitor to receive those errors and return them and exit after a 5 second waiting time for the UI to render.

Testing

Before

The RPC is valid, so monitor will continue attempting to render the UI, but the responses will be invalid. So it will never load and be stuck in this state.
image (22)

After

polycli monitor should now return the error message and exit. This image shows a test with a custom error.
custom-err

Copy link
Member

@leovct leovct left a comment

Choose a reason for hiding this comment

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

lgtm! thxx

Screenshot 2024-10-07 at 10 23 57

@jhkimqd jhkimqd merged commit f794ec8 into 0xPolygon:main Oct 7, 2024
5 checks passed
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