Jump to content

How to Support Maintenance Mode


Recommended Posts

Posted

@TeamB @quickmic  @chef  @Tolriq

See description here:

No special maintenance mode handling or detection is required for your UI to support this.

Be able to handle request errors and display them appropriately to users either in the form of a dialog or inline on screen depending on context. You can get the error message to display from the response body:

  • If the body is text/plain, then the contents are the error message
  • If the body is application/json - parse the contents as json, then use the Message property - this is currently not used so you could skip this for now if you wanted, but it might in the future if we ever need to attach more info to the response object.

Getting this kind of error handling in place will help you support a lot more things as well, particularly on the login screen and at the point of playback in order to display more useful error messages.

Posted

how are request errors identified, by the return code? i.e 5xx is usually error response

Posted
1 hour ago, TeamB said:

how are request errors identified, by the return code? i.e 5xx is usually error response

Correct. Anything in the 400 range is generally user error or some kind of access denied. The error codes that the server most frequently uses are 400, 401, 402, 403, 404, 500 and 503.

The error code can help you decide whether to display a Refresh/Retry button along with the error message. Right now I would say anything in the 500 range would make sense to have a retry button.

The best way to beef up your error handling would be to turn on maintenance mode while using and seeing how things respond. Like for example, trying to get to a new screen, trying to click play, etc.

  • Like 1
Posted

Any idea when this will be released?

 

Posted

Very soon.

  • Haha 1
quickmic
Posted

I think maintenance mode should be reported via websocket. Is this already covered?

Posted
11 hours ago, quickmic said:

I think maintenance mode should be reported via websocket. Is this already covered?

I need to add that for admins so that the main dashboard can immediately show and hide a banner about it. It's needed there since admins api requests are not blocked by this.

But in your case, if you were to depend on that as your only maintenance mode detection then I think that is not a good idea. There might be a use case for it to supplement and use it to improve and react quicker, but i would not use it as a replacement for the basic error handling that I mentioned above.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...