cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Authorization error while sending by HTTP (error code: 401 , error text: Unauthorized)

Bhargavakrishna
Active Contributor
3,948

Hi Experts,

We are trying to post the messages from the SAP back-end application to SAP CPI using proxy communication.

Interface flow: SAP (Back-end) --> CPI --> SFTP

The messages are getting failed in the SAP back-end system with the below error.

Error : Authorization error while sending by HTTP (error code: 401 , error text: Unauthorized)

  1. We have double checked the credentials and they are valid.
  2. RFC destination of type "G" is working fine with status "HTTP - 200 (OK).
  3. Tested from Postman with the same credentials and the data getting posted to SAP CPI.
  4. The user is having the role ESBMessaging.send

Please help us to fix the issue.

Thanks

Bhargava Krishna

View Entire Topic
0 Likes

Hi Bhargava,

it can be certificate issue as well . Please verify that CPI certificate should be available under SSL system client in STRUST transaction. Also, you can download http trace from CPI audit log and check if your http call reached CPI and thrown error.

Bhargavakrishna
Active Contributor
0 Likes

Hi Pranav,

We have verified the certificate and redeployed it.

Please note that,the messages were failing in the SAP back-end system and the request is not hitting CPI.

Thanks

Bhargava Krishna