embulk / embulk/embulk-base-restclient
Allow accessing response body when deciding retry or not
Open
- Dominant language
- Java
- Stars
- 6
- Forks
- 7
- PR merge metrics
- No merged PRs in 30d
Description
### Problem description
Current implementation only allow to access either `status code` of response (`HttpResponseException`), or the exception itself (not `HttpResponseException`). There are cases where we need to decide based on response body:
- 401: token is expired → refresh token
- 429: second policy → wait
- 429: day policy → stop retry and throw exception
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.