Requests failing intermittently with 401 at backend
search cancel

Requests failing intermittently with 401 at backend

book

Article ID: 218723

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

We are in the process of adding a new node to the rotation. We did made sure all the configuration on the new node is similar to the nodes that is already consuming traffic. When brought the new node into rotation intermittently calls are failing with 401, sent by backend. Backend is claiming that request hasn't been received. 

 

Environment

API Gateway 9.4, 10.X

Cause

The application is expecting the Authorization header to be present in the request but it's failing because the header is not present. Setting the header in the route assertion works but intermittently. 

Per our documentation: "The [Headers] tab is used to define which HTTP headers should be passed through" but it's unclear how to add a new header

 

Resolution

Before the routing assertions, add a Manage Transport Properties/Headers assertion to Add or Replace both headers (authorization and Other_Correlation-ID)