enrich icon indicating copy to clipboard operation
enrich copied to clipboard

How to set retry for "api_request_enrichment_config"

Open sivankumar86 opened this issue 2 years ago • 1 comments

Usecase: we are using internal API to enrich the event however, sometime, internal apps return 5xxx due to network issue and I could not find retry feature in config.

https://github.com/snowplow/enrich/blob/master/config/enrichments/api_request_enrichment_config.json

How to set number of retry if api is not returning 200 ?

sivankumar86 avatar Oct 26 '23 02:10 sivankumar86

There isn't currently a way to do this in the API enrichment. That said the underlying library we use (http4s) has a middleware that allows for retries so we'd definitely welcome a contribution if you are interested.

miike avatar Oct 26 '23 03:10 miike