Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Source Intercom: failed sync during pagination #6874

Closed
lazebnyi opened this issue Oct 7, 2021 · 0 comments · Fixed by #6879
Closed

Source Intercom: failed sync during pagination #6874

lazebnyi opened this issue Oct 7, 2021 · 0 comments · Fixed by #6879

Comments

@lazebnyi
Copy link
Collaborator

lazebnyi commented Oct 7, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants