Skip to content

Commit 9ba955d

Browse files
authored
source fb-marketing: add comment (#15812)
1 parent e9fa2c4 commit 9ba955d

File tree

1 file changed

+5
-0
lines changed
  • airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/streams

1 file changed

+5
-0
lines changed

airbyte-integrations/connectors/source-facebook-marketing/source_facebook_marketing/streams/async_job.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@
2222
logger = logging.getLogger("airbyte")
2323

2424

25+
# `FacebookBadObjectError` occurs in FB SDK when it fetches an inconsistent or corrupted data.
26+
# It still has http status 200 but the object can not be constructed from what was fetched from API.
27+
# Also, it does not happen while making a call to the API, but later - when parsing the result,
28+
# that's why a retry is added to `get_results()` instead of extending the existing retry of `api.call()` with `FacebookBadObjectError`.
29+
2530
backoff_policy = retry_pattern(backoff.expo, FacebookBadObjectError, max_tries=5, factor=5)
2631

2732

0 commit comments

Comments
 (0)