Skip to content

Commit

Permalink
source fb-marketing: add comment (#15812)
Browse files Browse the repository at this point in the history
  • Loading branch information
davydov-d authored Aug 20, 2022
1 parent e9fa2c4 commit 9ba955d
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@
logger = logging.getLogger("airbyte")


# `FacebookBadObjectError` occurs in FB SDK when it fetches an inconsistent or corrupted data.
# It still has http status 200 but the object can not be constructed from what was fetched from API.
# Also, it does not happen while making a call to the API, but later - when parsing the result,
# that's why a retry is added to `get_results()` instead of extending the existing retry of `api.call()` with `FacebookBadObjectError`.

backoff_policy = retry_pattern(backoff.expo, FacebookBadObjectError, max_tries=5, factor=5)


Expand Down

0 comments on commit 9ba955d

Please sign in to comment.