Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Error ICM_HTTP_CONNECTION_FAILED for IF_HTTP_CLIENT->RECEIVE

0 Kudos
1,582

Dear Expert,

I have this issue - ICM_HTTP_CONNECTION_FAILED and try to find from many sources, but none of them solve my problem. My problem here is the code sometimes work, sometimes not work when call the same URL.

At first, I am using cl_http_client=>create_by_url to call the URL. Then trigger IF_HTTP_CLIENT->SEND followed by IF_HTTP_CLIENT->RECEIVE. I am getting the code return 400 and message ICM_HTTP_CONNECTION_FAILED.

Is there something I have miss out the connection setting? Kindly help.

Thanks and Regards

Hock Lin

5 REPLIES 5
Read only

former_member192023
Active Participant
0 Kudos
1,187

You can trace the log in Tr-code smicm. The reason may be bad net.

Read only

0 Kudos
1,187

Hi Feiyun,

I have checked in tcode SMICM and here is the warning message. Can you guide me how should I correct the error?

The weird part is within 30 minutes background job that I have scheduled, first job maybe okay but second job will failed and vice versa.

Thanks and Regards

Hock Lin

Read only

0 Kudos
1,187

Hi Hock Lin,

As I konw the domain name always match the IP address.

But sometimes, the IP address changed but our SAP system did not know, so the request will be failed.

You should ask the target system whether their IP address may changed sometimes?

The SAP Basis guy config the net work in host by IP, because sometimes we all have fire wall to trust the oked IP.

Regards.

Read only

0 Kudos
1,187

Hi Feiyun,

Do you mean the host "rss.nbp.pl" is configure in SAP via IP?

Thanks and Regards

Hock Lin

Read only

matt
Active Contributor
0 Kudos
1,187

400 is a bad request error. That means the target thinks your request is corrupted in some way. Check the error log on the target.