Feature #11154
openPrint error message from Smart-Proxy in addition to the error code
Description
Print the error message returned from the Smart-Proxy when for instance creating a new host fails.
An example would be if I created a host with a name that was too long. Say I get the following error:Failed to create toooooooooooo-looooong.domain.com's realm entry: ERF12-5287 [ProxyAPI::ProxyException]: Unable to create realm entry ([RestClient::BadRequest]: 400 Bad Request) for proxy https://proxy.domain.com:8443/realm/MyRealm
It doesn't really tell me anything.
But alongside with the status '400 Bad Request', the proxy returned more info:Name: 'toooooooooooo-looooong.domain.com' is invalid: name is too long (maximum 15 characters)
If the response from the proxy could be a part of the error message shown to the user, I would instantly know what the problem is and would no longer need to check the Smart-Proxy's own log in order to determine the problem.
Updated by Dominic Cleal over 9 years ago
- Related to Feature #1966: Improve UI errors when smart proxy returns 400 bad request added