-
Notifications
You must be signed in to change notification settings - Fork 2
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
Better error handling #15
Comments
Do you have some suggestions? What would you like to see? |
I need to know on which part of the try section I am erroring out from: Is it because I couldn't |
go ahead and suggest a PR |
I think I noticed the same problem when testing my beekeeper PR. I found that it was caused by me accidentally adding some extra log messages to BK's register.sh which broke that the registration service expects to get JSON. (see this note) What you probably want to indicate is that it's malformed JSON (or use logger.exception to see the full traceback.) |
Thanks Sean. I have not modified anything that has not been tested on the dev docker-compose env. I think it might be the volume mounts. I was working from latest, but I am going to fallback to v0.3.0 to isolate my issue. You made this change: https://github.com/waggle-sensor/beekeeper/blob/main/bk-sshd/ROOTFS/opt/sage/beekeeper/register/register.sh#L41 How come you only check for certificate in the unit-test? https://github.com/waggle-sensor/beekeeper/blob/main/bk-api/test_bk_api.py#L47 You are doing a get next(https://github.com/waggle-sensor/beekeeper/blob/main/bk-api/test_bk_api.py#L49), but this is going to fail: https://github.com/waggle-sensor/waggle-bk-registration/blob/main/ROOTFS/usr/bin/waggle-bk-registration.py#L114-L120 when a new node registers with beekeeper. |
Or maybe its not since its over the ssh tunnel: https://github.com/waggle-sensor/waggle-bk-registration/blob/main/ROOTFS/usr/bin/waggle-bk-registration.py#L86 |
@iperezx Please let me know if this PR helps address some of this: waggle-sensor/beekeeper#27 |
Can we get better error handling for this
waggle-bk-registration/ROOTFS/usr/bin/waggle-bk-registration.py
Line 124 in 856998a
I get this error:
The text was updated successfully, but these errors were encountered: