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

Check for message destination endpoint validity #12

Open
trevorhardy opened this issue Mar 16, 2021 · 0 comments
Open

Check for message destination endpoint validity #12

trevorhardy opened this issue Mar 16, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@trevorhardy
Copy link
Contributor

Currently, any string can be used as the destination in the helicsEndpointSendBytesTo() and being inattentive to the parameter order could lead to accidentally specifying an invalid destination endpoint. There is no check in pyhelics for the validity of the endpoint specified in the API call and thus users are able to send out a message to an invalid destination.

Though there are error messages generated in the broker log, they are generic ("no route for message") and more specific error messages stating that the defined endpoint is not valid would be helpful.

I'll leave it up the the developers to determine if this should be implemented in the language bindings or if an update to the core library is needed.

@trevorhardy trevorhardy added the enhancement New feature or request label Mar 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant