zowe-cli
zowe-cli copied to clipboard
Display message from "causeError" in rest client
I issued the following command:
$ bright ops show rule TEST TEST1
Command Error:
http(s) request error event called
Error Details:
HTTP(S) client encountered an error. Request could not be initiated to host.
Review connection details (host, port) and ensure correctness.
Host: xxx
Port: xxx
Base Path:
Resource: /opsmvs/api/v1/aof/rulesets/TEST/rules/TEST1/status
Request: GET
Headers: [{"Content-Type":"application/json"},{"Accept":"application/json"}]
Payload: undefined
The true error message was "Error: write EPROTO 34276:error:1408F10B:SSL routines:ssl3_get_record:wrong version number" which was only in the log in a trace level message.
In this function, you could check for the existence of causeErrors and causeErrors.message and append it to the error message https://github.com/zowe/imperative/blob/master/packages/rest/src/client/AbstractRestClient.ts#L596
Hey @dkelosky, Is this still an issue with the OPS plugin?