cancel
Showing results for 
Search instead for 
Did you mean: 

Authorization error while sending by HTTP

Former Member
0 Kudos

Hi,

In my PI 7.31 system one of scenario failing due to authorization error. but some times the messages are going successful, some time failing. This only happen for this sceanrio. remaining all the scenarios are working fine.

Error description:

<!--

 Call Adapter 
--> 

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

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

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

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

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

<SAP:P3>(See attachment HTMLError for details)</SAP:P3>

<SAP:P4 />

<SAP:AdditionalText />

<SAP:Stack>Authorization error while sending by HTTP (error code: 401 , error text: Unauthorized)</SAP:Stack>

<SAP:Retry>N</SAP:Retry>

</SAP:Error>

And my Trace :

Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV"> 

<Trace level="1" type="B" name="CL_XMS_MAIN-CALL_PLSRV_LOCAL" />
- <!--
 ************************************ 
-->

- <Trace level="1" type="B" name="CL_XMS_PLSRV_IE_ADAPTER-ENTER_PLSRV">

<Trace level="1" type="B" name="CL_XMS_PLSRV_CALL_XMB-CALL_XMS_HTTP" />
- <!--
 ************************************ 
-->

<Trace level="1" type="T">Get logon data for adapter engine (SAI_AE_DETAILS_GET):</Trace>

<Trace level="1" type="T">URL = http://hostname:port/MessagingSystem/receive/AFW/XI</Trace>

<Trace level="1" type="T">User = PIISPIP</Trace>

<Trace level="1" type="T">Cached = X</Trace>

<Trace level="1" type="T">Security: Basic authentication</Trace>

<Trace level="1" type="T">Serializing message object...</Trace>

<Trace level="1" type="T">Tuning - AFW_MAXREQUESTCONTENTLENGTH 2000000000</Trace>

<Trace level="1" type="T">HTTP Multipart document length: 4244</Trace>

<Trace level="1" type="T">Timeout: 0</Trace>

<Trace level="1" type="T">HTTP-client: request sent</Trace>

<Trace level="1" type="T">HTTP-client: response received</Trace>

<Trace level="1" type="T">HTTP-client: status code = 401</Trace>

<Trace level="1" type="System_Error">Authorization error while sending by HTTP (error code: 401 , error text: Unauthorized)</Trace>

</Trace>

I cheked the PIISPIP , we are n't changed any password and not locked also. Could you please give some hint how to solve.

Thank you very much.

Sateesh

Accepted Solutions (1)

Accepted Solutions (1)

markangelo_dihiansan
Active Contributor
0 Kudos

Hello Sateesh,

Maybe this document will help:

How To Investigate Timeouts in Synchronous Scenarios - http://scn.sap.com/docs/DOC-16238

2.2 Timeout Calling the Adapter Framework, section 2.2.2 - HTTP 401 - Authentication Failure

Quoting the article: ICM time out due to less connection pool during high load. During high load, user authentication failure occurs at ABAP UME.

The proposed solution from the document is:

Check these parameters in NWA / VA:

ume.r3.connection.master.poolmaxsize

ume.r3.connection.master.poolmaxwait

Default Max. Connections: 20

Default Max. Wait Time: 10.000 ms

Increase parameters until problem disappears: for example,

Max. Connections=50, Max. Wait Time=60000

Hope this helps,

Mark

Former Member
0 Kudos

Hello Mark,

I follow up this note 821026 and changed to parameters and rebooted like below according to my system PI 7.31

Max connections:  50

Pool size: 25

Max wait time in ms : 60,000

Is this right configuration?

but still I am getting same Authorized error on

-->  

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

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

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

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

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

<SAP:P3>(See attachment HTMLError for details)</SAP:P3>

<SAP:P4 />

<SAP:AdditionalText />

Could you please give some more hints on this?

<SAP:Stack>Authorization error while sending by HTTP (error code: 401 , error text: Unauthorized)</SAP:Stack>

<SAP:Retry>N</SAP:Retry>

</SAP:Error>

Former Member
0 Kudos

Hi Markus,

Thanks for your hint . Your hint solve my problem.

But PI 7.31 environment need to follow the SAP note : 821026 for this problem.

Thank you very much.

Best Regards,
Sateesh

Answers (0)