Project

General

Profile

Actions

Feature #11154

open

Print error message from Smart-Proxy in addition to the error code

Added by Mikael Kolkinn almost 9 years ago. Updated almost 9 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Smart Proxy
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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.


Related issues 1 (0 open1 closed)

Related to Foreman - Feature #1966: Improve UI errors when smart proxy returns 400 bad requestClosedLukas Zapletal11/22/2012Actions
Actions #1

Updated by Dominic Cleal almost 9 years ago

  • Related to Feature #1966: Improve UI errors when smart proxy returns 400 bad request added
Actions

Also available in: Atom PDF