airbytehq / airbyte

The leading data integration platform for ETL / ELT data pipelines from APIs, databases & files to data warehouses, data lakes & data lakehouses. Both self-hosted and Cloud-hosted.
https://airbyte.com
Other
15.45k stars 3.98k forks source link

Python CDK `should_retry` behavior nullified by `default_backoff_handler` #11291

Open wjwatkinson opened 2 years ago

wjwatkinson commented 2 years ago

Environment

Expected Behavior

If should_retry evaluates to True the request should be retried.

Logs

logs-50.txt

2022-03-19 21:52:58 source > Giving up for returned HTTP status: 401
2022-03-19 21:52:58 source > Giving up _send(...) after 1 tries (airbyte_cdk.sources.streams.http.exceptions.DefaultBackoffException)

Steps to Reproduce

  1. Overwrite the should_retry method in your HttpStream to include a status between 400 and 500 other than 429.
  2. Run your stream, so it encounters this error status.
  3. Watch the stream not retry.

Are you willing to submit a PR?

Yes

philippeboyd commented 2 years ago

any update on this alafanechere?