zowe-cli icon indicating copy to clipboard operation
zowe-cli copied to clipboard

Display message from "causeError" in rest client

Open ChrisBoehmCA opened this issue 5 years ago • 1 comments

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

ChrisBoehmCA avatar Oct 02 '19 19:10 ChrisBoehmCA

Hey @dkelosky, Is this still an issue with the OPS plugin?

zFernand0 avatar Dec 16 '22 18:12 zFernand0