Skip to content
This repository has been archived by the owner on Jan 24, 2025. It is now read-only.

Refactors status code handling in Airbyte client #20

Merged
merged 8 commits into from
Sep 8, 2022

Conversation

desertaxle
Copy link
Member

@desertaxle desertaxle commented Sep 7, 2022

Summary

Refactors the status code handling in the Airbyte client to handle all non 2xx status codes. Previously, status codes that did not match the preconfigured checks would fall through and cause unexpected errors. Now, we will raise on all non 2xx status codes and handle the exceptions in specific cases.

Relevant Issue(s)

Closes #17

Checklist

prefect_airbyte/client.py Outdated Show resolved Hide resolved
prefect_airbyte/client.py Show resolved Hide resolved
prefect_airbyte/client.py Outdated Show resolved Hide resolved
@desertaxle desertaxle requested a review from ahuang11 September 8, 2022 14:35
@desertaxle desertaxle merged commit 2b136ad into main Sep 8, 2022
@desertaxle desertaxle deleted the status-code-handling branch September 8, 2022 15:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Randomly cannot unpack error from trigger_manual_sync_connection
2 participants