Our Iterable-to-Snowflake sync job keeps failing w...
# replication-troubleshooting
d
Our Iterable-to-Snowflake sync job keeps failing with the same error code, and always at ~850,000 records into the sync of the stream "users".
Copy code
File "/usr/local/lib/python3.9/site-packages/urllib3/response.py", line 761, in _update_chunk_length
    self.chunk_left = int(line, 16)
ValueError: invalid literal for int() with base 16: b''
A one-time sync was successfully completed in October 2022, going back to early 2021, and we've been in daily incremental sync mode ever since. This week we attempted to reset the "users" stream and do a full re-sync before settling into daily incrementals. The failure at around 850,000 records on the full sync is 100% reproducible. Why this error never happened on full or incrementals before this week, but is now 100% certain, is a mystery. Airbyte OSS: v0.40.15 Iterable source: v0.1.23 Snowflake destination: 0.4.47
n
Hi, Dan! As you probably know, my first suggestion has to be to update to the latest stable version,
v0.40.30
. If the issue persists then, it would be great to look through the full logs! My guess at this point is there's a type error in your data and perhaps the latest versions of the connectors + outdated version of Airbyte can't gracefully deal with it
d
Yes, given that we did a full sync about 5 months ago and fetched 5M+ records flawlessly, I suppose the most logical explanation is that the API payloads have changed from Iterable's end.
Would you change the guidance now to update to v0.41.0?
n
Yes.
d
Note that upgrading to v0.41.0 did not solve this issue. There are two relevant exceptions in the log, one being new and the other being the same as above:
Copy code
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/urllib3/response.py", line 761, in _update_chunk_length
    self.chunk_left = int(line, 16)
ValueError: invalid literal for int() with base 16: b''
Copy code
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/urllib3/response.py", line 444, in _error_catcher
    yield
  File "/usr/local/lib/python3.9/site-packages/urllib3/response.py", line 831, in read_chunked
    chunk = self._handle_chunk(amt)
  File "/usr/local/lib/python3.9/site-packages/urllib3/response.py", line 775, in _handle_chunk
    value = self._fp._safe_read(amt)
  File "/usr/local/lib/python3.9/http/client.py", line 628, in _safe_read
    raise IncompleteRead(b''.join(s), amt)
http.client.IncompleteRead: IncompleteRead(506 bytes read, 6 more expected)
Airbyte OSS: v0.41.0 Iterable source: v0.1.23 Snowflake destination: 0.4.49
In today's attempt we only got about 350K records into the initial fetch before the exceptions started, which is fewer than the ~850K records from two weeks ago
I've tried Full Refresh & [Incremental | De-duped + History] sync modes, and bringing the sync Start Date closer to the present time. None of these tactics have helped to avoid the problem.
UPDATE: if I set the connector's Start Date to today so that the window is just 1 day wide, I can successfully do the initial sync and end up with about 250K rows in my
users
table. But if I widen the sync window even just one day, such that the # of fetched records exceeds ~350K, the initial sync fails.