We are getting 401 errors and 200 successful responses intermittently. The 401 errors are because Basic Authentication policy is failing with the following error:
{“fault”:{“faultstring”:“Unresolved variable : request.header.Authorization”,“detail”:{“errorcode”:“steps.basicauthentication.UnresolvedVariable”}}}
Can you please check why ?
-
Looked at the trace and found that the cause for the 401 error was that the Authorization header was missing as part of the request.
-
For all the requests that were successful, the Authorization header was passed.
-
Made the API requests with curl command several times, but got successful response every time.
-
It was found that the the issue was reproduced only when using Postman.
-
The Postman was found to have an issue where sometimes Authorization header was not being sent as described in
https://github.com/postmanlabs/postman-app-support/issues/5872