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 polling loop death on getInfo error #737

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mutatrum
Copy link
Contributor

The polling loop of getInfo on the dashboard and the logs screen dies if the call returns an error, or is unavailable.

I tried fixing it, but not sure if it works as intended. One solution is mapping error objects to a DEFAULT_SYSTEM_INFO, and add an error field. That's the current implementation. It seems to work, however, the console.log does not show up. The dashboard does continue polling, so at least that's that. The error part should probably be shown in a toast or something, but I'm out of my depth here.

The alternative is the filter call, this should exit the loop completely. However, this would not give any feedback back to the user.

The deleted lines at home.component.ts#L58-59 are unrelated, this just fixes a console error. We no longer have 3 datasets.

@mutatrum mutatrum changed the title Fix polling loop deatch on getInfo error Fix polling loop death on getInfo error Feb 24, 2025
@mutatrum mutatrum force-pushed the fix-polling-loop-death branch from e39c607 to 6dea644 Compare February 24, 2025 08:16
@mutatrum
Copy link
Contributor Author

I have trouble testing this as my Bitaxe is getting a new IP address on every reboot and I don't have access to my router to give it a fixed IP address.

@mutatrum mutatrum marked this pull request as draft February 25, 2025 05:56
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.

1 participant