Source Intercom: failed sync during pagination #6874
Labels
area/connectors
Connector related issues
connectors/source/intercom
connectors/sources-api
lang/python
type/bug
Something isn't working
2021-10-06 15:26:21 INFO () DefaultAirbyteStreamFactory(internalLog):90 - Read 0 records from companies stream
2021-10-06 15:26:21 INFO () DefaultAirbyteStreamFactory(internalLog):90 - Syncing stream: contacts
2021-10-06 15:26:21 ERROR () DefaultAirbyteStreamFactory(internalLog):88 - Encountered an exception while reading stream SourceIntercom
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/airbyte_cdk/sources/abstract_source.py", line 104, in read
internal_config=internal_config,
File "/usr/local/lib/python3.7/site-packages/airbyte_cdk/sources/abstract_source.py", line 134, in _read_stream
for record in record_iterator:
File "/usr/local/lib/python3.7/site-packages/airbyte_cdk/sources/abstract_source.py", line 206, in _read_full_refresh
for record in records:
File "/airbyte/integration_code/source_intercom/source.py", line 60, in read_records
yield from super().read_records(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/airbyte_cdk/sources/streams/http/http.py", line 355, in read_records
next_page_token = self.next_page_token(response)
File "/airbyte/integration_code/source_intercom/source.py", line 234, in next_page_token
return {"starting_after": next_page["starting_after"]}
TypeError: string indices must be integers
2021-10-06 15:26:21 ERROR () LineGobbler(voidCall):65 - Traceback (most recent call last):
2021-10-06 15:26:21 ERROR () LineGobbler(voidCall):65 - File "/airbyte/integration_code/main.py", line 13, in
2021-10-06 15:26:21 ERROR () LineGobbler(voidCall):65 - launch(source, sys.argv[1:])
2021-10-06 15:26:21 ERROR () LineGobbler(voidCall):65 - File "/usr/local/lib/python3.7/site-packages/airbyte_cdk/entrypoint.py", line 105, in launch
2021-10-06 15:26:21 ERROR () LineGobbler(voidCall):65 - for message in source_entrypoint.run(parsed_args):
2021-10-06 15:26:21 ERROR () LineGobbler(voidCall):65 - File "/usr/local/lib/python3.7/site-packages/airbyte_cdk/entrypoint.py", line 96, in run
2021-10-06 15:26:21 ERROR () LineGobbler(voidCall):65 - for message in generator:
2021-10-06 15:26:21 ERROR () LineGobbler(voidCall):65 - File "/usr/local/lib/python3.7/site-packages/airbyte_cdk/sources/abstract_source.py", line 108, in read
2021-10-06 15:26:21 ERROR () LineGobbler(voidCall):65 - raise e
2021-10-06 15:26:21 ERROR () LineGobbler(voidCall):65 - File "/usr/local/lib/python3.7/site-packages/airbyte_cdk/sources/abstract_source.py", line 104, in read
2021-10-06 15:26:21 ERROR () LineGobbler(voidCall):65 - internal_config=internal_config,
2021-10-06 15:26:21 ERROR () LineGobbler(voidCall):65 - File "/usr/local/lib/python3.7/site-packages/airbyte_cdk/sources/abstract_source.py", line 134, in _read_stream
2021-10-06 15:26:21 ERROR () LineGobbler(voidCall):65 - for record in record_iterator:
2021-10-06 15:26:21 ERROR () LineGobbler(voidCall):65 - File "/usr/local/lib/python3.7/site-packages/airbyte_cdk/sources/abstract_source.py", line 206, in _read_full_refresh
2021-10-06 15:26:21 ERROR () LineGobbler(voidCall):65 - for record in records:
2021-10-06 15:26:21 ERROR () LineGobbler(voidCall):65 - File "/airbyte/integration_code/source_intercom/source.py", line 60, in read_records
2021-10-06 15:26:21 ERROR () LineGobbler(voidCall):65 - yield from super().read_records(*args, **kwargs)
2021-10-06 15:26:21 ERROR () LineGobbler(voidCall):65 - File "/usr/local/lib/python3.7/site-packages/airbyte_cdk/sources/streams/http/http.py", line 355, in read_records
2021-10-06 15:26:21 ERROR () LineGobbler(voidCall):65 - next_page_token = self.next_page_token(response)
2021-10-06 15:26:21 ERROR () LineGobbler(voidCall):65 - File "/airbyte/integration_code/source_intercom/source.py", line 234, in next_page_token
2021-10-06 15:26:21 ERROR () LineGobbler(voidCall):65 - return {"starting_after": next_page["starting_after"]}
2021-10-06 15:26:21 ERROR () LineGobbler(voidCall):65 - TypeError: string indices must be integers
2021-10-06 15:26:21 INFO () DefaultReplicationWorker(run):121 - Source thread complete.
2021-10-06 15:26:21 INFO () DefaultReplicationWorker(run):122 - Waiting for destination thread to join.
Additional context
Slack convo: https://airbytehq.slack.com/archives/C019WEENQRM/p1633534004385400
The text was updated successfully, but these errors were encountered: