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

Middleware Incorrectly Marks Assets as Down Due to Misconfiguration #98

Closed
Ashesh3 opened this issue Sep 15, 2023 · 0 comments · Fixed by #99
Closed

Middleware Incorrectly Marks Assets as Down Due to Misconfiguration #98

Ashesh3 opened this issue Sep 15, 2023 · 0 comments · Fixed by #99

Comments

@Ashesh3
Copy link
Member

Ashesh3 commented Sep 15, 2023

Description

We have identified an issue where the middleware marks an asset as 'down' if any camera asset under the same middleware is misconfigured. These issues are causing problems with asset uptime tracking and have resulted in the Dev Camera being incorrectly shown as down. Furthermore, if the local IP of the camera is invalid, the server times out and never responds.

Steps to Reproduce

  1. Misconfigure a camera asset under the same middleware by leaving the username or the password field blank, or by using an invalid local IP.
  2. Check the status of other assets under the same middleware, along with the misconfigured one.

Expected Behavior

The middleware should return the status of each asset independently. If a camera is misconfigured or has an invalid local IP, it should not impact the status of other assets under the same middleware. The expected statuses should be:

  1. Up
  2. Down

Actual Behavior

The middleware returns a 400 Bad Request when any of the camera assets under the same middleware is misconfigured or has an invalid local IP. It does not return the status for the other cameras which are correctly configured, marking them as 'down'. Additionally, the server times out and does not respond when the local IP of the camera is invalid.

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

Successfully merging a pull request may close this issue.

1 participant