SAP Knowledge Base Article - Preview

3619321 - OAuth Client connection test failed with NIEHOST_UNKNOWN(-2) error

Symptom

On ICM trace, the following error is found:
NiHLGetNodeAddr: no address for hostname 'https' found by operating system
IcmIConnConnect: Connect to host: https, service: 443, NIEHOST_UNKNOWN(-2)

And/Or

When transaction SE38 or SA38 > report OA2C_GENERIC_ACCESS is executed for the affected "OAuth 2.0 Client Profile" with "Display configuration" option chosen, the following information can be found:
Auth. Endpoint: https://https://<host>
Token Endpoint: https://https://<host>/oauth/token

And/Or

When transaction SE38 or SA38 > report OA2C_GENERIC_ACCESS is executed for the affected "OAuth 2.0 Client Profile" with "Access Token Request" option chosen, the following information can be found:
HTTP failure, processing failed, invalid state, invalid timeout or others
oa2c_error
Client configuration error or network problems. See kernel traces.
HTTPC Method:                  RECEIVE
HTTPC Subrc:                       1
HTTPC Subrc Text:              http_communication_failure
HTTPC get_last_error code:       417
HTTPC get_last_error message:
                               Direct connect to https:443 failed: NIEHOST_UNKNOWN(-2)

Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.


Read more...

Environment

  • SAP S/4HANA
  • ABAP Platform
  • SAP Netweaver

Product

ABAP platform all versions ; SAP NetWeaver all versions ; SAP S/4HANA all versions

Keywords

NIEHOST_UNKNOWN(-2), https://https://, OAUTH, OAUTH 2.0, no address for hostname 'https' found by operating system, 417, OA2C_CONFIG , KBA , BC-SEC-LGN-OA2 , OAuth 2.0 for ABAP , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.