Hey guys, getting the following error with the `In...
# contributing-to-airbyte
m
Hey guys, getting the following error with the
Intercom
source: (Maybe an issue with pagination?)
u
@Serhii Lazebnyi [GL] please advice
u
@Madhup Sukoon could you upload the logs here or create a GH issue with the logs to help us recreate?
u
The entire logs?
u
Can't upload entire log (compliance issues 😕 ) but here's the relevant part:
Copy code
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 <module>
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.
e
Does this help?
u
yup, thanks! fyi @Serhii Lazebnyi [GL]
u
Anything on this, guys?
u
@Serhii Lazebnyi [GL]
u
@Madhup Sukoon Hi, which version of connector you use?
u
Hey @Serhii Lazebnyi [GL], I'm using 0.1.5
u
I think that is the latest one.
e
Ok, thanks Today I will check your issue
u
Great! Thanks a lot! 😄
d
Hey @Serhii Lazebnyi [GL], wanted to know if there's an update on this?
u
@Madhup Sukoon Please follow this PR for more details: https://github.com/airbytehq/airbyte/pull/6879