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 ?
Solved! Go to Solution.
1. 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.
2. For all the requests that were successful, the Authorization header was passed.
3. Made the API requests with curl command several times, but got successful response every time.
4. It was found that the the issue was reproduced only when using Postman.
5. 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