Onprem Gateway 401 errors
search cancel

Onprem Gateway 401 errors

book

Article ID: 219319

calendar_today

Updated On:

Products

DX Operational Intelligence

Issue/Introduction

 

The Onprem gateway component of RESTMon periodically stops connecting to SaaS and throws the following 401 auth error. 

A simple restart of the process starts it up again. 

 

GeneratedMethodAccessor24.invoke:-1:    Exception in fetching alarms  : HTTP request execution failed for URI [https://doi.dxi-na1.saas.broadcom.com/oi/v3/oianalytics/alarms/alarms_all/_search?q=((product:Application%20Performance%20Management)%20AND%20(status:NEW)%20AND%20(maintenance:false))&from=0&size=50&timefrom=1624547635000&timeto=1624548352397]; nested exception is org.springframework.web.client.HttpClientErrorException$Unauthorized: 401

 

Environment

Release : 20.2

Component : CA DOI OI CONNECTOR

Cause

 

If there is loss of connection between the gateway and SaaS server, this can invalidate the tokens that are generated at startup.

 

Resolution

 
 

The Onprem Gateway has been enhanced to reauthenticate where the token is deemed to have expired.

Please download the latest version of the gateway to benefit from this change. 

To verify the installed version, the updated jar file version for onprem, will be 1.20 (or higher). This can be found in the DX-Gateway/Onprem folder

onprem-gateway-1.2.0-OnPrem-RELEASE.jar