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

How to catch "get_active_program" errors? #38

Closed
HomeMatic-INSIDE opened this issue Apr 6, 2021 · 3 comments
Closed

How to catch "get_active_program" errors? #38

HomeMatic-INSIDE opened this issue Apr 6, 2021 · 3 comments

Comments

@HomeMatic-INSIDE
Copy link

Hi,

I'm using the "home_connect_request" node to "get_active_program" from the given HAID and this works as expected - but: as soon as there's no active program available, the node throws an error which will be displayed in the debug window:

msg : string[67]
"404 Not Found SDK.Error.NoProgramActive: There is no program active"

I wan't to capture this error using the "catch"-node, but this doesn't work - the node is never triggered by the error.

Any idea why this doesn't work?

Thank you,...

@alexkn
Copy link
Owner

alexkn commented Apr 10, 2021

Looks like it's not correctly implemented to report the error to the runtime.
What do you want to do exactly with the catched error?

@alexkn alexkn closed this as completed in 4e1190d Apr 10, 2021
@alexkn
Copy link
Owner

alexkn commented Apr 10, 2021

catch should work with v0.6.3

@HomeMatic-INSIDE
Copy link
Author

Hi - thanks for fixing. I wonna use this to reset a progress bar if the active program has been stopped...or the disher was powered off.

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

No branches or pull requests

2 participants