How to make long-running RESTMessageV2 call using MID?

davidnia
Giga Contributor

Hi All,

I am on Fuji Patch 8.

The endpoint is expected to take 11 minutes to respond, but the call from REST message times out.

Here is the ECC response:

<results error="The request failed: Socket timeout" probe_time="185236">

I have also set the property:

glide.rest.outbound.ecc_response.timeout to 1500000

glide.http.timeout to 1500000

glide.http.connection_timeout to 1500000

Here is the code I run:

              var restMessage   = new sn_ws.RESTMessageV2( 'ABC', 'get' );

              restMessage.setEccParameter( 'skip_sensor', 'true' );

              restMessage.setStringParameter( 'url', 'https://abc.blah.com' );

              restMessage.setStringParameter( 'resource_name', 'books' );

              restMessage.setStringParameter( 'query', 'active=TRUE' );

              restMessage.setHttpTimeout(150000);

              restMessage.execute();

Why is this timing out at roughly 3 minutes?

Are the parameters having no effect?

Thank you!

5 REPLIES 5

Hi,

 

Did you ever get a solution for this?