Use of http_string in batch
Posted: Thu Oct 14, 2021 4:30 pm
Good evening,
I found a particular problem : I use http_string to send a json file (structured inside as an array of an object) to an external web services.
If I launch in interactive mode ... all function. If I launch in batch mode I receive the errore "Socket has been shut down" when the external process use more than 30 seconds to complete. But the external process in reality close without errors.
This is more strange due the fact that timeout HTTPAPI default is setted to 60 seconds. Besides I set it to 300 seconds (http_setOption('timeout': 300)), but nothing change.
If I send a number of elements in the array that permit to close the remote job within 30 seconds all functions.
So I don't have idea where look at the problem.
The web services that I call stay in a Boomi platform, that in turn call the final web service that stay in a PLM environment (Kubix Link).
The Boomi platform have a timeout default of 2 minutes. And here all is ok.
Thanks a lot
Nalesso Antonio
I found a particular problem : I use http_string to send a json file (structured inside as an array of an object) to an external web services.
If I launch in interactive mode ... all function. If I launch in batch mode I receive the errore "Socket has been shut down" when the external process use more than 30 seconds to complete. But the external process in reality close without errors.
This is more strange due the fact that timeout HTTPAPI default is setted to 60 seconds. Besides I set it to 300 seconds (http_setOption('timeout': 300)), but nothing change.
If I send a number of elements in the array that permit to close the remote job within 30 seconds all functions.
So I don't have idea where look at the problem.
The web services that I call stay in a Boomi platform, that in turn call the final web service that stay in a PLM environment (Kubix Link).
The Boomi platform have a timeout default of 2 minutes. And here all is ok.
Thanks a lot
Nalesso Antonio