outbound REST, MID server, timeout despite result in the ECC Queue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-08-2018 07:59 PM
On Kingston, I have an outbound REST service going through a MID server. Although I can see the result in the ECC Queue within a few seconds, request.execute() (and executeAsync) timeout:
com.glide.ecc.ECCResponseTimeoutException: No response for ECC message request with sysid=03f4d5b1dbf713004a36f81d0f961988 after waiting for 60 seconds in ECC Queue
The service works using Background Scripts and On Demand scheduled jobs, but not from a business rule. How can I prevent the timeout? The ECC response only takes 2 seconds.
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-24-2019 07:38 AM
I never did. I am still curious if there is a solution?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-25-2019 07:02 PM
Hi Stephen,
I'm not sure if you found a solution to this problem, however I believe that I've encountered the same problem and found my way around it.
If you're sending an outbound REST request out via the MID server, I found that it fails if you do not set an ECC Correlator on the request. After I set this in the script doing the outbound request, it started working for me.
myRestReqest.setEccCorrelator("some_unique_identifier");
Hope this helps!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-30-2020 09:08 PM
I am having the same issue. Although we are trying to check every possible cause for the outbound request to go out via a midserver to a 3rd party endpoint. Can you provide step by step where and how did you incorporate this method in your script? Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-26-2021 12:30 PM
I have the same issue .Can you give more details about the "some_unique_identifier". I understand this is a business rule on ecc_queue table. I dont see any documentation on this or an OOB business rule for this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-28-2021 02:50 PM
You just need to set this to something unique.
If in doubt, I'd recommend gs.generateGUID() to create a big unique string.
var sm = new sn_ws.RESTMessageV2("Yahoo Finance","get");
sm.setEccCorrelator(gs.generateGUID());
sm.setMIDServer("my_mid_server");
sm.execute();