OpenAPI queries do not work.
search cancel

OpenAPI queries do not work.

book

Article ID: 213690

calendar_today

Updated On:

Products

CA Performance Management - Usage and Administration DX NetOps

Issue/Introduction

Having troubles accessing: http://dataAggregatorAddress:8581/odataquery/index.html 

This returns a 502 error.  Also, I'm noticing that we need to restart the bundles frequently, or this response isn't even possible as we get 403 Forbidden.

HTTP error 502 

HTTP 403 Forbidden 

odata gets error 

openAPI gets error 

 

 

Environment

Dx NetOps Performance Management any version

Cause

Saw this error in the karaf.log 

ERROR | 723525195-278221 | 2021-04-13 07:44:30,246 | AuthenticationServiceImpl | e.impl.AuthenticationServiceImpl 1276 | -services.authentication |       | Basic authorization error - unexpected error
java.net.UnknownHostException: <FQDN_HOSTNAME>

 <FQDN_HOSTNAME> was not correct hostname for the CAPC system. Someone had updated DNS with a different hostname and now openAPI could not contact CAPC to authenticate. 

Resolution

Added the correct hostname to /etc/hosts and restarted Data Aggregator and now the openAPI call work.