Ask a Question

Receiving response: HTTP/1.1 401 Unauthorized Attempt 1

rajusim
New Member

Receiving response: HTTP/1.1 401 Unauthorized Attempt 1

Hi Team,

 

Can some one tell why always i am getting this message of 401 unauthorized in attempt 1 and in attempt 2 its 200 OK.

 

Regards

Raj

 

  • Fri Aug 26 15:58:08 BST 2016:DEBUG:Attempt 1 to execute request
  • Fri Aug 26 15:58:08 BST 2016:DEBUG:Sending request: POST /XXXX/XXXXIntegration.XXXX_MTService.svc HTTP/1.1
  • Fri Aug 26 15:58:08 BST 2016:DEBUG:Receiving response: HTTP/1.1 401 Unauthorized
  • Fri Aug 26 15:58:08 BST 2016:DEBUG:Connection can be kept alive indefinitely
  • Fri Aug 26 15:58:08 BST 2016:DEBUG:Target requested authentication
  • Fri Aug 26 15:58:08 BST 2016:DEBUG:Authorization challenge processed
  • Fri Aug 26 15:58:08 BST 2016:DEBUG:Authentication scope: BASIC 'XXXX.co.uk'@localhost:80
  • Fri Aug 26 15:58:08 BST 2016:INFO:localhost:80 requires authentication with the realm 'XXXX.co.uk'
  • Fri Aug 26 15:58:08 BST 2016:DEBUG:Found credentials
  • Fri Aug 26 15:58:08 BST 2016:DEBUG:Attempt 2 to execute request
  • Fri Aug 26 15:58:08 BST 2016:DEBUG:Sending request: POST /XXXX/XXXXIntegration.XXXX_MTService.svc HTTP/1.1
  • Fri Aug 26 15:58:08 BST 2016:DEBUG:Receiving response: HTTP/1.1 200 OK
  • Fri Aug 26 15:58:08 BST 2016:DEBUG:Connection can be kept alive indefinitely
  • Fri Aug 26 15:58:08 BST 2016:INFO:Got response for [BasicEndPoint.CreateNoticeToContractor:InsertTaskDone] in 686ms (1116 bytes)
  • Fri Aug 26 15:58:43 BST 2016:DEBUG:Connection closed

 

 

1 REPLY 1
MarcusJ
Moderator

Re: Receiving response: HTTP/1.1 401 Unauthorized Attempt 1

Hello,

 

This is normal processing for a request that uses authentication in Ready API.  The first attempt was sent without authentication and the server responded that authentication is required so another attempt was made using the authentication that is configured in Ready API, in your case BASIC authentication.

 

 

Regards,

Marcus

SmartBear Support


Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
cancel
Showing results for 
Search instead for 
Did you mean: