diogogmt / webvirt

NodeJS application to manage hyper-visors though libvirt
1 stars 2 forks source link

Dashboard crashes if IP is unavailable #39

Closed diogogmt closed 11 years ago

diogogmt commented 11 years ago

If a virt-node IP is saved and suddenly the connection is dropped, the dashboard crashes and doesn't load any other hosts.

sedge commented 11 years ago

Is this a result of the polling? Is it the Backbone app that is crashing?

diogogmt commented 11 years ago

We are not implementing any polling in the app currently.

The bug here is that the UI is trying to get some info about an IP, however the IP is down, so the server returns an error that the UI is not expecting.

The UI should fail gracefully if an error is returned from the server. We can display a toastr msg informing the error and what the user can do to solve it.

sedge commented 11 years ago

Can you provide steps to replicate this bug?

sedge commented 11 years ago

Got it.