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

Improve Error Handling when MQTT connection fails #4

Open
vhi-di opened this issue Oct 1, 2019 · 0 comments
Open

Improve Error Handling when MQTT connection fails #4

vhi-di opened this issue Oct 1, 2019 · 0 comments

Comments

@vhi-di
Copy link
Collaborator

vhi-di commented Oct 1, 2019

At the moment, the server returns a 500 server error when the connection fails.
This should be handled better by returning a 400 bad request with the following response object:

{"status":"CONNECTION ERROR","message": "some error that was the cause of the failure"}

This should then be shown in the error overlay.
For now, we can just return the raw error message without regard for translation or transformation.

@vhi-di vhi-di added hacktoberfest Hacktoberfest Issue and removed hacktoberfest Hacktoberfest Issue labels Oct 1, 2019
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

1 participant