https://linen.dev logo
m

Madhup Sukoon

10/06/2021, 3:26 PM
Hey guys, getting the following error with the
Intercom
source: (Maybe an issue with pagination?)
u

user

10/06/2021, 3:28 PM
@Serhii Lazebnyi [GL] please advice
u

user

10/06/2021, 4:07 PM
@Madhup Sukoon could you upload the logs here or create a GH issue with the logs to help us recreate?
u

user

10/06/2021, 4:15 PM
The entire logs?
u

user

10/06/2021, 4:19 PM
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

Eugene Kulak

10/06/2021, 4:23 PM
Does this help?
u

user

10/06/2021, 4:28 PM
yup, thanks! fyi @Serhii Lazebnyi [GL]
u

user

10/07/2021, 2:11 AM
Anything on this, guys?
u

user

10/07/2021, 9:25 AM
@Serhii Lazebnyi [GL]
u

user

10/07/2021, 9:26 AM
@Madhup Sukoon Hi, which version of connector you use?
u

user

10/07/2021, 9:27 AM
Hey @Serhii Lazebnyi [GL], I'm using 0.1.5
u

user

10/07/2021, 9:28 AM
I think that is the latest one.
e

Eugene Kulak

10/07/2021, 9:36 AM
Ok, thanks Today I will check your issue
u

user

10/07/2021, 9:36 AM
Great! Thanks a lot! 😄
d

Dejan Antonic

10/08/2021, 2:22 PM
Hey @Serhii Lazebnyi [GL], wanted to know if there's an update on this?
u

user

10/08/2021, 2:25 PM
@Madhup Sukoon Please follow this PR for more details: https://github.com/airbytehq/airbyte/pull/6879
5 Views