Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set retry for "api_request_enrichment_config" #823

Open
sivankumar86 opened this issue Oct 26, 2023 · 1 comment
Open

How to set retry for "api_request_enrichment_config" #823

sivankumar86 opened this issue Oct 26, 2023 · 1 comment

Comments

@sivankumar86
Copy link

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 ?

@miike
Copy link
Contributor

miike commented Oct 26, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants