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-outreach] 'TypeError: argument of type 'NoneType' is not iterable' #55253

Closed
1 task
JuanAngarita727 opened this issue Mar 7, 2025 · 7 comments
Closed
1 task
Labels
area/connectors Connector related issues autoteam community connectors/source/outreach team/community-devs Community Engineers working on low-code sources team/use type/bug Something isn't working

Comments

@JuanAngarita727
Copy link

Connector Name

source-outreach

Connector Version

1.1.4

What step the error happened?

Configuring a new connector

Relevant information

I'm creating an Outreach source, and when I try to set up the source, the process returns a 'TypeError: argument of type 'NoneType' is not iterable' error.

Relevant log output

Encountered an error trying to connect to stream accounts. Error:
 Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/airbyte_cdk/sources/declarative/checks/check_stream.py", line 46, in check_connection
    stream_is_available, reason = availability_strategy.check_availability(
  File "/usr/local/lib/python3.10/site-packages/airbyte_cdk/sources/streams/http/availability_strategy.py", line 48, in check_availability
    self.get_first_record_for_slice(stream, stream_slice)
  File "/usr/local/lib/python3.10/site-packages/airbyte_cdk/sources/streams/availability_strategy.py", line 81, in get_first_record_for_slice
    return next(records_for_slice)
  File "/usr/local/lib/python3.10/site-packages/airbyte_cdk/sources/declarative/declarative_stream.py", line 154, in read_records
    yield from self.retriever.read_records(self.get_json_schema(), stream_slice)  # type: ignore # records are of the correct type
  File "/usr/local/lib/python3.10/site-packages/airbyte_cdk/sources/declarative/retrievers/simple_retriever.py", line 444, in read_records
    for stream_data in self._read_pages(record_generator, self.state, _slice):
  File "/usr/local/lib/python3.10/site-packages/airbyte_cdk/sources/declarative/retrievers/simple_retriever.py", line 341, in _read_pages
    response = self._fetch_next_page(stream_state, stream_slice, next_page_token)
  File "/usr/local/lib/python3.10/site-packages/airbyte_cdk/sources/declarative/retrievers/simple_retriever.py", line 311, in _fetch_next_page
    request_params=self._request_params(
  File "/usr/local/lib/python3.10/site-packages/airbyte_cdk/sources/declarative/retrievers/simple_retriever.py", line 181, in _request_params
    params = self._get_request_options(
  File "/usr/local/lib/python3.10/site-packages/airbyte_cdk/sources/declarative/retrievers/simple_retriever.py", line 142, in _get_request_options
    stream_slicer_method(
  File "/airbyte/integration_code/source_declarative_manifest/components.py", line 50, in get_request_params
    if self.cursor_field in stream_state:
TypeError: argument of type 'NoneType' is not iterable

Contribute

  • Yes, I want to contribute
@natikgadzhi
Copy link
Contributor

We've definitely just seen this a couple days back. #55180 attempts to fix it and I think we should just merge this and see if that worked ;)

@JuanAngarita727
Copy link
Author

@natikgadzhi No, I'm trying to set up the source using connector version 1.1.6, after the merge of #55180. It still presents the same error.

@natikgadzhi
Copy link
Contributor

Whoops. The l. You'd have to fork in Bulder and change stream state to stream interval, as @pnilan suggested in the linked PR.

@JuanAngarita727
Copy link
Author

@natikgadzhi Sorry, I don't get what you are saying. When I fork the connector in the Builder, I only see the YAML, and not the python code (where is the place I understand is the stream state defined). So, I'm not sure how I could change that. Thanks for your help

@marcosmarxm marcosmarxm changed the title 'TypeError: argument of type 'NoneType' is not iterable' Outreach connector error [source-outreach] 'TypeError: argument of type 'NoneType' is not iterable' Mar 13, 2025
@marcosmarxm marcosmarxm added team/community-devs Community Engineers working on low-code sources and removed autoteam team/use labels Mar 13, 2025
@github-project-automation github-project-automation bot moved this to 📥 Triaging in Community Board Mar 13, 2025
@kyleromines
Copy link
Contributor

kyleromines commented Mar 17, 2025

@natikgadzhi @JuanAngarita727 Fix for this here: #55805

@shubham-agrawal-glean
Copy link

@kyleromines we really need a fix for this ASAP.

@JuanAngarita727
Copy link
Author

@kyleromines Thanks for your help. It works now

@github-project-automation github-project-automation bot moved this from 📥 Triaging to ✔️ Done in Community Board Mar 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/connectors Connector related issues autoteam community connectors/source/outreach team/community-devs Community Engineers working on low-code sources team/use type/bug Something isn't working
Projects
Status: ✔️ Done
Development

No branches or pull requests

6 participants