https://linen.dev logo
e

Eugene Kulak

06/18/2021, 8:29 AM
guys, I’m working on improving error handling in HttpStream from CDK, I would like to gather possible scenarios: 1. request needs to be repeated with some adjustment from the prev response 2. request should be skipped, error reported and we should proceed to the next slice/stream is there any other?
u

user

06/18/2021, 8:31 AM
#1 can be solved with better backoff handler, repeat
prepareRequest
instead of
sendRequest
#2 can be solved with new method
handle_errors
with default implementation
response.raise_for_status ()
3 Views