Skip to main content
Archived

Parameters for 'Number of Retry' and 'Time Delay' in some transformers when fail

Related products:Transformers
  • July 21, 2017
  • 7 replies
  • 98 views

pallegama
Contributor
Forum|alt.badge.img+8

***Note from Migration:***

Original Title was: Parameters for 'Number of Retry' and 'Time Delay' in some transformers when failed.


It is nice to have parameters to set number of retries and time delay between retries in case of connection failure in some transformers connecting to external services such as HTTPCaller, FTPCaller.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

7 replies

rylanatsafe
Safer
Forum|alt.badge.img+14

Agreed! For now the only solution I can think of is to create a Custom Transformer with HTTPCaller and a Loop (Counter, Tester) for implementing resubmit attempts.


david_r
Celebrity
  • April 25, 2022

With cloud services we often run into either gateway timeouts or rate limits when doing batch operations. It would be incredible if there was a Python code editor in the HTTPCaller that was invoked on <Rejected>, where you could write Python code to inspect headers etc. and tell the HTTPCaller to either retry in a number of seconds, or to reject the connection. This proposition is based on the fact that rate limits exists in so many different flavors, that I'm suspecting it's not feasible to support them all out of the box (see https://tools.ietf.org/id/draft-polli-ratelimit-headers-00.html).


rylanatsafe
Safer
Forum|alt.badge.img+14
  • Safer
  • April 27, 2022

@david_r​ Have you seen this addition to HTTPCaller (FME 2021.2 and 2022.0)? It sounds like this might be able to work with the scenario you had started to describe above. (I'd be happy to pass on or highlight any feedback you have about this!)

 

2022-04-27_09-27-24


david_r
Celebrity
  • April 28, 2022

Amazing, how did I miss that one... Thank you, Rylan! Now I just need to convince our users to upgrade :-)


poly_jan
Contributor
  • Contributor
  • August 30, 2022

I just did a bit of testing due to a client experiencing server-side timeouts (Http status 524). Unfortunately this particular error doesn't seem to be supported. It's not a choice in the list of 5xx error codes, and it also doesn't seem to be included in the "Connection Errors" category. I ran it against https://httpstat.us/524 with a backoff time of three seconds, but it failed straightaway.

It'd be brilliant if the transformer allowed us to use custom error codes. There are some APIs out there that respond in weird and wonderful ways when things go wrong.


david_r
Celebrity
  • August 30, 2022

@Jan Roggisch​ Agree completely


worjak
Contributor
Forum|alt.badge.img+4
  • Contributor
  • October 13, 2023

Yes I need this with a the wfs-reader (in the featurereader!)