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

Communication error when sending with HTTP, Idoc to HTTP destination

pekka_pottonen1
Explorer
0 Kudos
1,291

Hi,

I am trying to send idoc to HTTP destination using background job. Idoc gets created but sending fails.

Communication error when sending with HTTP

The error code and the error message are: 411 /Connect to XXXXXX:443 failed: NIECONN_REFUSED(-10).

Same works fine when done manually, but not in job. Connection test is ok in SM59.

Cannot find anythig helpfull with error code 411...

Any ideas what might be the problem when sending in background?

Regards,

Pekka

Accepted Solutions (1)

Accepted Solutions (1)

pekka_pottonen1
Explorer
0 Kudos

Hi all, 

Solved this...

Reason was that there is three application servers and only one had connection settings for the receiver. On frontend run, process used the appl1 and in background appl2 or appl3. Obvious once discovered...

 

Answers (2)

Answers (2)

GrahamRobbo
SAP Mentor
SAP Mentor
0 Kudos

A dumb suggestion. Google tells me ...
The HTTP 411 Length Required client error response status code indicates that the server refused to accept the request without a defined Content-Length header.

So perhaps try and put in a valid Content-Length header if you don't already have one?

Cheers
Graham Robbo

pekka_pottonen1
Explorer
0 Kudos
Hello, This is all standard. Std program creates idoc, distribution model, partner settings and HTTP port... I think I cannot modify header values. And this works fine if I send the idoc manually.
RaymondGiuseppi
Active Contributor
0 Kudos

So basically, connection from SAP GUI (manually) is OK, but from Application server (nackground job) is KO?

There should be a gateway issue or IP address not maintained correctly. Check for the IP address. Then update it in central instance, application server and firewall (Also white list)

Also use tools such as the ICM trace, via transaction SMICM.

RaymondGiuseppi
Active Contributor
0 Kudos
So it was not defined in background jobs application servers