-
Notifications
You must be signed in to change notification settings - Fork 28
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
Potentially insufficient error handling for emitEvent() #256
Comments
Signed-off-by: Zoltan Kis <[email protected]>
The PR #264 is not fixing the issue. Discussion summary from the Scripting call on 28.9.2020.
@egekorkan, @sebastiankb, @mjkoster please advise. |
The proposed solution for this one would be to return a Promise by emitEvent(), which might reject with an error when the event notification is not successful. This is a trivial change.
For this one the Scripting API already has coverage via
This is still outstanding and could be discussed in a separate issue. One (quite trivial) solution would be to revert to the separate |
see #269 |
Scripting Call 2020-10-19. TD related issue "defining error" |
Open point:
I am closing this one, the issue was solved and the last open point it is being tracked on the following issues: |
Related to #237 but on the sender side.
When emitting an event §8.27 The emitEvent() method does only define a SecurityError and a NotFoundError, but does not define an error if the emit fails due to another, perhaps technical problem. Consider similar to #237 a sender who wants to emit an event to the configured, but currently offline mqtt broker. This probably results in an error on the protocol level, but is never communicated to the application level. EmitEvent() probably needs a similar definition as:
The text was updated successfully, but these errors were encountered: