<@U04SE163WC8> Hi, I am having the following erro...
# replication-ask-ai
p
@kapa.ai Hi, I am having the following error with the pipedrive connector, but I dont know what it is causing it:
Copy code
2023-10-24 11:14:35 source > Marking stream stages as STARTED
102
2023-10-24 11:14:35 source > Syncing stream: stages 
103
2023-10-24 11:14:36 source > Encountered an exception while reading stream stages
104
Traceback (most recent call last):
105
  File "/usr/local/lib/python3.9/site-packages/airbyte_cdk/sources/abstract_source.py", line 119, in read
106
    yield from self._read_stream(
107
  File "/usr/local/lib/python3.9/site-packages/airbyte_cdk/sources/abstract_source.py", line 194, in _read_stream
108
    for record in record_iterator:
109
  File "/usr/local/lib/python3.9/site-packages/airbyte_cdk/sources/abstract_source.py", line 304, in _read_full_refresh
110
    for record_data_or_message in record_data_or_messages:
111
  File "/usr/local/lib/python3.9/site-packages/airbyte_cdk/sources/declarative/declarative_stream.py", line 104, in read_records
112
    yield from self.retriever.read_records(stream_slice)
113
  File "/usr/local/lib/python3.9/site-packages/airbyte_cdk/sources/declarative/retrievers/simple_retriever.py", line 305, in read_records
114
    most_recent_record_from_slice = self._get_most_recent_record(most_recent_record_from_slice, stream_data, stream_slice)
115
  File "/usr/local/lib/python3.9/site-packages/airbyte_cdk/sources/declarative/retrievers/simple_retriever.py", line 315, in _get_most_recent_record
116
    if self.cursor and (record := self._extract_record(stream_data, stream_slice)):
117
  File "/usr/local/lib/python3.9/site-packages/airbyte_cdk/sources/declarative/types.py", line 38, in __len__
118
    return len(self._data)
119
TypeError: object of type 'NoneType' has no len()
120
2023-10-24 11:14:36 source > Marking stream stages as STOPPED
k
Hmm, I don't know enough to give you a confident answer yet. The error message indicates that there's an issue with the 'stages' stream in the Pipedrive connector, but the provided extracts don't contain specific information about this error. However, it's worth noting that the Pipedrive connector has undergone several updates, as seen in the [changelog](https://docs.airbyte.com/integrations/sources/pipedrive). If you're not using the latest version of the connector, updating it might resolve the issue. If the problem persists, I recommend posting your question on the [Airbyte forum](https://discuss.airbyte.io) or checking the [Airbyte documentation](https://docs.airbyte.com) for more information.