cancel
Showing results for 
Search instead for 
Did you mean: 

org.apache.camel.component.ahc.AhcOperationFailedException: HTTP operation failed invoking https:<>

ananda_paul
Explorer
0 Kudos

Hi,

I am working on an integration project, loading the data into Ariba . I am asked to use the HTTP form post methodology to load the master data into Ariba. Data is in CSV format that is zipped, which should be added to the HTTP request and then submitted, according to the technical spec. I am getting the following error and I could not find any lead on that error.

Errro Message:

org.apache.camel.component.ahc.AhcOperationFailedException: HTTP operation failed invoking https://s1-integration-eu.ariba.com/Buyer/fileupload?realm=XXXXXXXXX with statusCode: 400

HTTP Configuration: (HTTP adaptor to load data in Ariba)

Address - https://s1-integration-eu.ariba.com/NBuyer/fileupload
Query - realm=XXXXXX
ProxyType - Internet
Method - POST
Authentication - Basic/None (I tried with both options, still getting the error)
CredentialName - XXXXX (if the above is chosen as Basic)

HTTP Headers: (This is set in Groovy script)

    message.setHeader('content-type','application/octet-stream; charset=ISO-8859-1')
    message.setHeader('sharedsecret','ARIBA123')
    message.setHeader('fullload','true')
    message.setHeader('event','Import Batch Data')

Please let me know where I am wrong.

0 Kudos

Hi Ananda,

have you found solution for this issue?

Thanks,

Kishore

Accepted Solutions (0)

Answers (1)

Answers (1)

bhalchandraswcg
Contributor
0 Kudos

Hi Ananda,

HTTP Status Code 400 refers to Bad Request. This means that something is wrong with the payload body.

Check if the body you are sending to Ariba is correct.

Hope this helps,

Bala