Skip to content
This repository has been archived by the owner on Nov 13, 2023. It is now read-only.

Show protocol in the Abstract Client Error #539

Closed
zFernand0 opened this issue Feb 5, 2021 · 0 comments · Fixed by #555
Closed

Show protocol in the Abstract Client Error #539

zFernand0 opened this issue Feb 5, 2021 · 0 comments · Fixed by #555

Comments

@zFernand0
Copy link
Member

Current Result:

Command Error:
z/OSMF REST API Error:
http(s) request error event called
Error: socket hang up
Error Details:
HTTP(S) client encountered an error. Request could not be initiated to host.
Review connection details (host, port) and ensure correctness.

Host:      myhost.com
Port:      1234
Base Path: 
Resource:  /zosmf/restfiles/ds?dslevel=hql.*
Request:   GET
Headers:   [{"X-IBM-Max-Items":"0"},{"X-CSRF-ZOSMF-HEADER":true}]
Payload:   undefined

Desired result:

Command Error:
z/OSMF REST API Error:
http(s) request error event called
Error: socket hang up
Error Details:
HTTP(S) client encountered an error. Request could not be initiated to host.
Review connection details (host, port) and ensure correctness.

Protocol:  http
Host:      myhost.com
Port:      1234
Base Path: 
Resource:  /zosmf/restfiles/ds?dslevel=hql.*
Request:   GET
Headers:   [{"X-IBM-Max-Items":"0"},{"X-CSRF-ZOSMF-HEADER":true}]
Payload:   undefined

Function to enhance: (plus the IRestClientError interface)

private populateError(error: IRestClientError, nodeClientError?: any): RestClientError {

See show-protocol-in-error for details

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant