cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP response contains status code 401 with the description Unauthorized

Former Member
0 Kudos

Hi,

We have IDOC-> XI scenario in production.

It suddenly stopped working. I can see idoc in XI sxmb_moni tcode . IN moni it throws below error message:

please help.

<SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">

<SAP:Category>XIServer</SAP:Category>

<SAP:Code area="INTERNAL">HTTP_RESP_STATUS_CODE_NOT_OK</SAP:Code>

<SAP:P1>401</SAP:P1>

<SAP:P2>Unauthorized</SAP:P2>

<SAP:P3 />

<SAP:P4 />

<SAP:AdditionalText><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Error Report</title> <style> td {font-family : Arial, Tahoma, Helvetica, sans-serif; font-size : 14px;} A:link A:visited A:active </style> </head> <body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" rightmargin="0"> <table width="100%" cellspacing="0" cellpadding="0" border="0" align="left" height="75"> <tr bgcolor="#FFFFFF"> <td align="left" colspan="2" height="48"><font face="Arial, Verdana, Helvetica" size="4" color="#666666"><b>&nbsp;&nbsp;401 &nbsp Unauthorized</b></font></td> </tr> <tr bgcolor="#3F73A3"> <td height="23" width="84"><img width=1 height=1 border=0 alt=""></td> <td height="23"><img width=1 height=1 border=0 alt=""></td> <td align="right" height="23"><font face="Arial, Verdana, Helvetica" size="2" color="#FFFFFF"><b>SAP J2EE Engine/7.00&nbsp;</b></font></td> </tr> <tr bgcolor="#9DCDFD"> <td height="4" colspan="3"><img width=1 height=1 border=0 alt=""></td> </tr> </table> <br><br><br><br><br><br> <table width="100%" cellspacing="0" cellpadding="0" border="0" align="left" height="75"> <tr bgcolor="#FFFFFF"> <td align="left" colspan="2" height="48"><font face="Arial, Verdana, Helvetica" size="3" color="#000000"><b>&nbsp;&nbsp;Authentication did not succeed.</b></font></td> </tr> <tr bgcolor="#FFFFFF"> <td align="left" valign="top" height="48"><font face="Arial, Verdana, Helvetica" size="2" color="#000000"><b>&nbsp;&nbsp;Details:</b></font></td> <td align="left" valign="top" height="48"><font face="Arial, Verdana, Helvetica" size="3" color="#000000"><pre>&nbsp;&nbsp;No details available</pre></font></td> </tr> </body> </html></SAP:AdditionalText>

<SAP:ApplicationFaultMessage namespace="" />

<SAP:Stack>HTTP response contains status code 401 with the description Unauthorized Authorization error while sending by HTTP (error code: 401, error text: Unauthorized)</SAP:Stack>

<SAP:Retry>M</SAP:Retry>

</SAP:Error>

Accepted Solutions (1)

Accepted Solutions (1)

baskar_gopalakrishnan2
Active Contributor
0 Kudos

>It suddenly stopped working. I can see idoc in XI sxmb_moni tcode . IN moni it throws below error message:

please help.

Check user credentials username/password. This might have changed recently so you get this 401 authentication error.

Answers (4)

Answers (4)

Former Member
0 Kudos

It has been solved.

The user ID & password maintain in exchage profile was difft thats why the issue appear.

Former Member
0 Kudos

Hi It is IDOC->XI->File scenario.

In XI SXMB_MONI tcode the error is at CALL ADAPTER step.

former_member184681
Active Contributor
0 Kudos

Hi,

I guess that this is an IDoc -> XI -> HTTP scenario. In this case, please check the Receiver Communication Channel parameters. User credentials should be entered there for HTTP call authentication. Most probably these credentials were changed recently on HTTP server side, so you will have to adjust them in XI as well. Now that you have old (no longer valid) credentials in the CC configuration, XI cannot get the HTTP call authorized, which results in the error you described.

Regards,

Grzegorz

prateek
Active Contributor
0 Kudos

>>We have IDOC-> XI scenario in production

What is the receiver system?

>>.IN moni it throws below error message

But at which step of pipeline?