Hi All, I'm building low code Python connector for...
# replication-troubleshooting
d
Hi All, I'm building low code Python connector for our company, now I'm running CI Tests and Its always faling in Python CLI smoke test using PyAirbyte. I will provide more details, .
Copy code
Dev Environment
------------------------
OS Windows, using WSL and docker with Airbyte abctl.
-------------------------
Pyproject.toml
-------------------------
[build-system]
requires = [ "poetry-core>=1.0.0",]
build-backend = "poetry.core.masonry.api"

[tool.poetry]
version = "0.3.21"
name = "source-nexus-datasets"
description = "Source implementation for nexus-datasets."
authors = [ "Airbyte <contact@airbyte.io>",]
license = "MIT"
readme = "README.md"
documentation = "https://docs.airbyte.com/integrations/sources/nexus-datasets"
homepage = "https://airbyte.com"
repository = "https://github.com/airbytehq/airbyte"
packages = [ { include = "source_nexus_datasets" }, {include = "main.py" } ]

[tool.poetry.dependencies]
python = ">=3.10,<3.12"
airbyte-cdk = "6.61.0"
pyarrow = ">=16.1,<22.0"
pandas = "2.2.2"

[tool.poetry.scripts]
source-nexus-datasets = "source_nexus_datasets.run:run"

[tool.poetry.group.dev.dependencies]
requests-mock = "^1.9.3"
pytest-mock = "^3.6.1"
pytest = "^8.0.0"

------------------------------------------
Metadata.yaml
-------------------------------------------
data:
  allowedHosts:
    hosts:
      - TODO # Please change to the hostname of the source.
  registries:
    oss:
      enabled: true
    cloud:
      enabled: false
  remoteRegistries:
    pypi:
      enabled: true
      packageName: airbyte-source-nexus-datasets
  connectorBuildOptions:
      baseImage: docker.io/airbyte/python-connector-base:3.0.2@sha256:73697fbe1c0e2ebb8ed58e2268484bb4bfb2cb56b653808e1680cbc50bafef75
  connectorSubtype: api
  connectorType: source
  definitionId: 9e1fe63c-80ad-44fe-8927-10e66c9e209b
  dockerImageTag: 0.1.0
  dockerRepository: airbyte/source-nexus-datasets
  githubIssueLabel: source-nexus-datasets
  icon: nexus-datasets.svg
  license: MIT
  name: Nexus Datasets
  releaseDate: TODO
  releaseStage: alpha
  supportLevel: community
  documentationUrl: https://docs.airbyte.com/integrations/sources/nexus-datasets
  tags:
    - language:python
    - cdk:low-code
  connectorTestSuitesOptions:
    - suite: liveTests
      testConnections:
        - name: nexus_datasets_config_dev_null
          id: TODO
    - suite: unitTests
    - suite: acceptanceTests
      #optional: if your acceptance tests need credentials from CI secret store
      #testSecrets:
      #  - name: SECRET_SOURCE-NEXUS-DATASETS__CREDS
      #    fileName: config.json
      #    secretStore:
      #      type: GSM
      #      alias: airbyte-connector-testing-secret-store       
metadataSpecVersion: "1.0"
So this is the error I can see in the logs,
Copy code
Traceback (most recent call last):
  File "/usr/local/bin/pyab", line 5, in <module>
    from airbyte.cli import cli
  File "/usr/local/lib/python3.11/site-packages/airbyte/__init__.py", line 126, in <module>
    from airbyte import (
  File "/usr/local/lib/python3.11/site-packages/airbyte/cloud/__init__.py", line 59, in <module>
    from airbyte.cloud import connections, constants, sync_results, workspaces
  File "/usr/local/lib/python3.11/site-packages/airbyte/cloud/workspaces.py", line 27, in <module>
    from airbyte.sources.base import Source
  File "/usr/local/lib/python3.11/site-packages/airbyte/sources/__init__.py", line 6, in <module>
    from airbyte.sources import base, util
  File "/usr/local/lib/python3.11/site-packages/airbyte/sources/util.py", line 10, in <module>
    from airbyte._executors.util import get_connector_executor
  File "/usr/local/lib/python3.11/site-packages/airbyte/_executors/util.py", line 13, in <module>
    from airbyte._executors.declarative import DeclarativeExecutor
  File "/usr/local/lib/python3.11/site-packages/airbyte/_executors/declarative.py", line 14, in <module>
    from airbyte_cdk.sources.declarative.manifest_declarative_source import ManifestDeclarativeSource
ModuleNotFoundError: No module named 'airbyte_cdk.sources.declarative.manifest_declarative_source'
Can someone please help me on this ?
k
The error you're encountering:
Copy code
ModuleNotFoundError: No module named 'airbyte_cdk.sources.declarative.manifest_declarative_source'
is a known issue when using certain versions of the
airbyte-cdk
package with PyAirbyte or the Airbyte Python CLI. This typically happens because the version of
airbyte-cdk
you have installed (in your case,
6.61.0
) is not compatible with the version expected by PyAirbyte or the CLI tooling. Solution: Pin your
airbyte-cdk
dependency to version
6.60.4
or
6.61.0
(sometimes even
6.61
works, but
6.60.4
is confirmed to resolve this issue). You can do this by updating your `pyproject.toml`:
Copy code
toml [tool.poetry.dependencies] python = ">=3.10,<3.12" airbyte-cdk = "6.60.4" pyarrow = ">=16.1,<22.0" pandas = "2.2.2"
After updating, run:
Copy code
bash poetry update
or, if you are using `uv`:
Copy code
bash uv pip install "airbyte-cdk==6.60.4"
This should resolve the
ModuleNotFoundError
for
manifest_declarative_source
and allow your PyAirbyte CLI smoke tests to pass. This solution is confirmed by users and contributors in the Airbyte community and GitHub issues [Pyairbyte failing with ModuleNotFoundError](https://github.com/airbytehq/airbyte/issues/65628). Additional Tips: - Always ensure your connector dependencies are compatible with the Airbyte platform and CLI versions used in your CI. - If you continue to see issues, check the Airbyte and connector logs for missing modules or version mismatches, and adjust your dependencies accordingly. Let me know if you need further help!
d
@kapa.ai It does not work for me, still getting same error. need to understand how tests is run? I mean, when we run
airbyte-ci connectors --name source-nexus-datasets test
it builds the connector image, and then tests run against the image, I check the cdk versions like this, in docker,
Copy code
(venv_airbyte):~/devl/airbyte$ docker run --rm -it --entrypoint pip airbyte/source-nexus-datasets:dev show airbyte-cdk

Name: airbyte-cdk
Version: 6.60.4
Summary: A framework for writing Airbyte Connectors.
Home-page: https://airbyte.com
Author: Airbyte
Author-email: contact@airbyte.io
License: MIT
Location: /usr/local/lib/python3.10/site-packages
and in the venv,
Copy code
(venv_airbyte):~/devl/airbyte$ pip show airbyte-cdk
Name: airbyte-cdk
Version: 6.61.0
Summary: A framework for writing Airbyte Connectors.
Home-page: https://airbyte.com
Author: Airbyte
Author-email: contact@airbyte.io
License: MIT
Location: /home/dilanalex/devl/airbyte/venv_airbyte/lib/python3.11/site-packages
Both versions have this
manifest_declarative_source
module, so its confusing why I'm still getting this error.
k
A message from kapa.ai
You're correct in your understanding: when you run
airbyte-ci connectors --name source-nexus-datasets test
, Airbyte builds your connector's Docker image and then runs the test suites (unit, integration, and acceptance tests) against that image. The tests are executed in a controlled environment, using the dependencies and code present inside the built Docker image—not your local virtual environment. This ensures consistency and isolates the test environment from local machine differences. How the tests are run: 1. Image Build: The command builds your connector Docker image (e.g.,
airbyte/source-nexus-datasets:dev
). The dependencies installed in this image are determined by your connector's
pyproject.toml
and
Dockerfile
(or the Airbyte build system if you use
airbyte-ci
). 2. Test Execution: The Airbyte CI pipeline then runs the test suites (unit, integration, acceptance) against this image. For acceptance tests, it uses the [connector-acceptance-test](https://docs.airbyte.com/platform/next/connector-development/testing-connectors/connector-acceptance-tests-reference) pytest plugin, which interacts with the connector via its Docker image. The tests are not run in your local venv—they are run inside containers using the built image and its installed dependencies. 3. Dependency Check: When you check the
airbyte-cdk
version inside the Docker image (as you did with
docker run ... pip show airbyte-cdk
), you are seeing the version that will be used during the tests. The version in your local venv is only relevant for local development, not for the CI tests. Why the error might persist: - Even if both your local venv and Docker image have the correct
airbyte-cdk
version and the
manifest_declarative_source
module, the error can still occur if: - The test runner (PyAirbyte CLI or acceptance test suite) is using a different environment or image than you expect. - There is a mismatch between the PyAirbyte CLI version and the
airbyte-cdk
version in the test environment. - The test runner itself (not your connector image) is missing the required module. Key points from Airbyte documentation: - The acceptance tests are run against the connector's Docker image, using the dependencies installed in that image, as specified in your
pyproject.toml
and built by the Airbyte build system or your Dockerfile. - The test runner uses the image, not your local venv, so only the dependencies in the image matter for the test execution environment [Testing Connectors](https://docs.airbyte.com/platform/next/connector-development/testing-connectors) [Acceptance Tests Reference](https://docs.airbyte.com/platform/next/connector-development/testing-connectors/connector-acceptance-tests-reference). - If the error is coming from the PyAirbyte CLI smoke test, it may be related to the version of PyAirbyte or the test runner image, not your connector image. If you continue to see the error: - Double-check which image or environment the failing test is actually running in. - Ensure that the PyAirbyte CLI and the test runner are compatible with the
airbyte-cdk
version in your connector image. - If the error is in the test runner and not your connector, you may need to align the versions or report the issue to the Airbyte team, as this could be a compatibility problem outside your connector's code. If you need to debug further, try running the acceptance tests locally using the same process as CI, as described in the docs:
Copy code
bash cd airbyte-integrations/bases/connector-acceptance-test/ poetry install poetry run pytest -p connector_acceptance_test.plugin --acceptance-test-config=../../connectors/<your-connector> --pdb
[Acceptance Tests Reference](https://docs.airbyte.com/platform/next/connector-development/testing-connectors/connector-acceptance-tests-reference#setting-up-standard-acceptance-tests-for-your-connector) If the issue persists, the knowledge sources do not provide more specific troubleshooting steps for this particular module error in the context of the PyAirbyte CLI smoke test.
d
@kapa.ai so what is the difference between
Python CLI smoke test
and
Acceptence Test
? both same or different ?
k
A message from kapa.ai
Based on the available knowledge sources, the Python CLI smoke test and the Acceptance Test are different types of tests in the Airbyte connector testing pyramid. - Acceptance Tests are connector-agnostic tests that verify a connector adheres to the [Airbyte protocol](https://docs.airbyte.com/understanding-airbyte/airbyte-protocol). They are run against the connector's Docker image using the [connector-acceptance-test](https://docs.airbyte.com/platform/next/connector-development/testing-connectors/connector-acceptance-tests-reference) pytest plugin. These tests require credentials to a source/destination sandbox account and are a standard part of the CI pipeline for all connectors. They ensure the connector responds correctly to Airbyte commands and meets the minimum quality bar required for release. You configure these tests via the
acceptance-test-config.yml
file in your connector's root directory, and they are executed as part of the
airbyte-ci connectors --name <connector_name> test
command [Testing Connectors](https://docs.airbyte.com/platform/next/connector-development/testing-connectors) [Acceptance Tests Reference](https://docs.airbyte.com/platform/next/connector-development/testing-connectors/connector-acceptance-tests-reference). - Python CLI smoke test is not explicitly described in the provided knowledge sources. The documentation lists the types of tests run in CI (QA checks, unit tests, integration tests, acceptance tests, regression tests), but does not mention a "Python CLI smoke test" as a standard category or provide details about its purpose or implementation. Therefore, based on the knowledge sources, it is not possible to provide a definitive description or comparison for the "Python CLI smoke test." Summary: Acceptance Tests are well-documented, connector-agnostic protocol compliance tests run in CI. The "Python CLI smoke test" is not described in the provided documentation, so I cannot confirm its exact role or how it differs from acceptance tests based on the current knowledge sources.
d
@kapa.ai Is it encouraged to use
poe the poet
instead
airbyte-ci
?
k
A message from kapa.ai
Yes, it is encouraged to use Poe the Poet instead of
airbyte-ci
. The Airbyte documentation clearly states that the
airbyte-ci
tool is deprecated and will be phased out shortly. Most
airbyte-ci
commands now have simpler equivalents in Poe, which you can discover using
poe --help
. The recommended workflow for local connector development and common tasks (like installing dependencies, running tests, and fetching secrets) is to use Poe the Poet as the main task runner [Tooling](https://docs.airbyte.com/platform/next/connector-development/local-connector-development#tooling) [airbyte-ci (deprecated)](https://docs.airbyte.com/platform/next/connector-development/local-connector-development#airbyte-ci-deprecated) [Release Notes 1.7](https://docs.airbyte.com/release_notes/v-1.7#contributors-airbyte-ci-is-deprecated).
d
@kapa.ai does it recommended to use with
abctl
as well ?
k
A message from kapa.ai
I'm sorry, but the knowledge sources do not contain information about whether it is recommended to use Poe the Poet with
abctl
. The documentation discusses using Poe the Poet as a replacement for
airbyte-ci
for local development tasks, but does not mention
abctl
or provide guidance on their combined usage. If you need more details on this, you may want to consult the official Airbyte documentation or community forums for further clarification.
d
@kapa.ai OK, does it deploy the image to docker locally ?
k
A message from kapa.ai
Yes, when you build your connector image using the recommended Airbyte workflow (for example, with
airbyte-ci connectors --name source-<source-name> build
), the image is built and deployed to your local Docker host. After the build completes, you will find your connector image locally with a tag like
airbyte/source-<source-name>:dev
. You can verify this by running:
Copy code
bash docker images ls | grep airbyte/source-<source-name>:dev
This confirms the image is available locally for further testing or loading into your Airbyte instance with
abctl
or other tools [Connector Contributions](https://docs.airbyte.com/platform/next/contributing-to-airbyte/developing-locally#connector-contributions).
d
@kapa.ai I mean, does poe deploy the image to docker? I was used airbyte-ci to build the image and kind to load image to the abctl. Now if I use poe then can it do the same process ?
k
A message from kapa.ai
Based on the knowledge sources, Poe the Poet is recommended as the main task runner for local connector development, and it is designed to replace most
airbyte-ci
commands. The documentation states that Poe can be used to perform common connector tasks, and you can see available tasks by running
poe
in your connector directory. However, the documentation does not explicitly state which specific tasks Poe provides for building and deploying Docker images, or whether it directly replaces the full workflow of building the image and loading it into
kind
for use with
abctl
. The documentation encourages you to check the available Poe tasks by running
poe
in your connector directory, as the available commands may vary by connector and connector type. It also mentions that Poe tasks are there to help you, but you are free to review or combine steps from the task definitions in the
poe_tasks
directory [Tooling](https://docs.airbyte.com/platform/next/connector-development/local-connector-development#tooling). In summary: While Poe the Poet is intended to replace most
airbyte-ci
commands, the knowledge sources do not explicitly confirm that Poe will build and deploy the Docker image and load it into
kind
for use with
abctl
in exactly the same way as your previous workflow. You should check the available Poe tasks in your environment to see if these steps are included, or refer to the
poe_tasks
directory for more details. If you need a guaranteed workflow for building and loading images, you may still need to use Docker and
kind
commands directly, as described in the connector contribution guides.
d
@kapa.ai when I'm trying to update abctl local credentials, it gives an error,
Copy code
~/devl/airbyte$ abctl local credentials --email auser@inforex.com
  INFO    Using Kubernetes provider:
            Provider: kind
            Kubeconfig: /home/dilanalex/.airbyte/abctl/abctl.kubeconfig
            Context: kind-airbyte-abctl
  INFO    Updating email for authentication
  ERROR   Unable to update the email address
  ERROR   unable to udpate the email address: failed to update organization: unexpected status code: 401
k
A message from kapa.ai
The error you are seeing:
Copy code
ERROR   Unable to update the email address ERROR   unable to udpate the email address: failed to update organization: unexpected status code: 401
indicates an unauthorized (401) response when trying to update the authentication email with
abctl local credentials --email ...
. This issue has been reported by other users as well. According to the Airbyte documentation and GitHub issues, there are known situations where the email is not automatically populated or cannot be updated due to authentication issues. The documentation states: > Airbyte is aware of situations where the email is not be automatically populated and we are working on addressing this within the
abctl
tool. In the interim, some manually steps are required to retrieve the authentication email address when it is unknown. If the email address for authenticating is not automatically populated, you can set an email with the following command:
Copy code
abctl local credentials --email <your_email>
However, if you receive a 401 error, it means the update is not authorized. This is a known issue and has been discussed in GitHub issues, where users report being unable to update the email or retrieve it due to 401 errors, even after following the documented steps. The Airbyte team is aware and investigating these issues [FAQ: Unable To Locate User Email](https://docs.airbyte.com/platform/next/deploying-airbyte/troubleshoot-deploy#faq) [GitHub Issue 61677](https://github.com/airbytehq/airbyte/issues/61677) [GitHub Issue 65608](https://github.com/airbytehq/airbyte/issues/65608). Summary: - The 401 error when updating the email is a known issue. - There is no documented workaround in the knowledge sources other than the command you already tried. - The Airbyte team is aware and working on a fix. If you continue to encounter this, you may need to wait for an update from the Airbyte team or follow any new guidance they provide in the documentation or GitHub issues.
d
@kapa.ai when running
check
operation using this command
poetry run source-nexus-datasets check --config integration_tests/config.json
it succeeds, but when I run the CAT using this command
poe run-cat-tests
I can see this error in the output log,
Copy code
=================================== FAILURES ===================================
______________________ TestConnection.test_check[inputs0] ______________________

self = <connector_acceptance_test.tests.test_core.TestConnection object at 0x76d1d8af5590>
connector_config = SecretDict(******)
inputs = ConnectionTestConfig(config_path='integration_tests/config.json', status=<Status.Succeed: 'succeed'>, timeout_seconds=None, deployment_mode=None)
docker_runner = <connector_acceptance_test.utils.connector_runner.ConnectorRunner object at 0x76d1d372d950>

    async def test_check(self, connector_config, inputs: ConnectionTestConfig, docker_runner: ConnectorRunner):
        if inputs.status == ConnectionTestConfig.Status.Succeed:
            output = await docker_runner.call_check(config=connector_config)
            con_messages = filter_output(output, Type.CONNECTION_STATUS)
    
            assert len(con_messages) == 1, "Connection status message should be emitted exactly once"
>           assert con_messages[0].connectionStatus.status == Status.SUCCEEDED
E           AssertionError: assert equals failed
E             -<Status.FAILED: 'FAILED'>   +<Status.SUCCEEDED: 'SUCCEE 
E                                         +DED'>

/app/connector_acceptance_test/tests/test_core.py:636: AssertionError
------------------------------ Captured log call -------------------------------
WARNING  root:connector_runner.py:304 Unable to parse connector's output Making outbound API request, error: 1 validation error for AirbyteMessage
__root__
  Expecting value: line 1 column 1 (char 0) (type=value_error.jsondecode; msg=Expecting value; doc=Making outbound API request; pos=0; lineno=1; colno=1)
WARNING  root:connector_runner.py:304 Unable to parse connector's output Making outbound API request, error: 1 validation error for AirbyteMessage
__root__
  Expecting value: line 1 column 1 (char 0) (type=value_error.jsondecode; msg=Expecting value; doc=Making outbound API request; pos=0; lineno=1; colno=1)
WARNING  root:connector_runner.py:304 Unable to parse connector's output {"type": "DEBUG", "message": "Making outbound API request", "data": {"message": "Making outbound API request", "request_body": "None", "headers": "{'User-Agent': 'python-requests/2.32.5', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'Authorization': 'HMAC_1 1002n4gZecuf03nvZ37:9y6V9ejeoZw03UVYze9W0odzLkj5Vlqjfh847WwCvsk=:DataApiAgentcj@5717988960038861', 'x-dapi-date': '2025-10-07T04:55:30.000Z', 'x-nexus-api-key': '4354c1f5a341853211138ad8afb740ffdafc6527'}", "url": "https://fte-8ff80ec62f854c77b80efd029308a60d-infornexus.fte.gtnexus.info/rest/3.1/analytics/dataset/PurchaseOrderexportTest2/export?mode=Full"}}, error: 1 validation error for AirbyteMessage
type
  value is not a valid enumeration member; permitted: 'RECORD', 'STATE', 'LOG', 'SPEC', 'CONNECTION_STATUS', 'CATALOG', 'TRACE', 'CONTROL' (type=type_error.enum; enum_values=[<Type.RECORD: 'RECORD'>, <Type.STATE: 'STATE'>, <Type.LOG: 'LOG'>, <Type.SPEC: 'SPEC'>, <Type.CONNECTION_STATUS: 'CONNECTION_STATUS'>, <Type.CATALOG: 'CATALOG'>, <Type.TRACE: 'TRACE'>, <Type.CONTROL: 'CONTROL'>])
WARNING  root:connector_runner.py:304 Unable to parse connector's output Caught retryable error 'ConnectionError: HTTPSConnectionPool(host='fte-8ff80ec62f854c77b80efd029308a60d-infornexus.fte.gtnexus.info', port=443): Max retries exceeded with url: /rest/3.1/analytics/dataset/PurchaseOrderexportTest2/export?mode=Full (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7364ba76f9a0>: Failed to resolve 'fte-8ff80ec62f854c77b80efd029308a60d-infornexus.fte.gtnexus.info' ([Errno -2] Name or service not known)"))' after 1 tries. Waiting 1 seconds then retrying..., error: 1 validation error for AirbyteMessage
__root__
k
A message from kapa.ai
The difference in behavior between running the
check
operation directly (
poetry run source-nexus-datasets check --config integration_tests/config.json
) and running the Connector Acceptance Tests (CAT) with
poe run-cat-tests
is expected and explained by how the Airbyte protocol and acceptance tests work. ### Why does
check
succeed but CAT fails? - Direct
check
command:
When you run the check command directly, it executes your connector's
check_connection
method and prints any output (including logs or debug messages) directly to the console. If your connector prints non-JSON output (like plain log messages), it doesn't cause a problem for the CLI, as it just displays everything. - Acceptance Tests (CAT): The acceptance tests expect your connector to strictly follow the [Airbyte protocol](https://docs.airbyte.com/platform/next/understanding-airbyte/airbyte-protocol#common-interface) and only emit valid [AirbyteMessage](https://docs.airbyte.com/platform/next/understanding-airbyte/airbyte-protocol#airbytemessage) JSON objects to stdout. If your connector prints any non-JSON output (such as plain log lines or debug messages) to stdout, the acceptance test runner will fail to parse it and will throw errors like:
Copy code
Unable to parse connector's output Making outbound API request, error: 1 validation error for AirbyteMessage
This is exactly what you are seeing in your logs. ### What is happening in your case? - Your connector is printing a plain string (e.g.,
"Making outbound API request"
) to stdout, which is not a valid AirbyteMessage. - The acceptance test runner expects only valid AirbyteMessage JSON objects, so it fails to parse this output and the test fails. ### How to fix this? - Ensure your connector only prints valid AirbyteMessage JSON objects to stdout. - All logging, debug, or print statements should either be removed or redirected to stderr, not stdout. - Use the Airbyte logging mechanism to emit logs as AirbyteMessage objects of type
LOG
. ### Reference This requirement is part of the Airbyte protocol: > The connector must only emit valid AirbyteMessage JSON objects to stdout. Any other output will cause the acceptance tests to fail [Airbyte Protocol - Common Interface](https://docs.airbyte.com/platform/next/understanding-airbyte/airbyte-protocol#common-interface). --- Summary: Your connector is emitting non-JSON output to stdout, which is not allowed by the Airbyte protocol and causes the acceptance tests to fail. Update your connector to only emit valid AirbyteMessage JSON objects to stdout, and redirect any other output to stderr. This should resolve the acceptance test failure.
d
@kapa.ai I upgraded the airbyte cdk to latest version 7.3.1 and there I'm getting below error when running this command
poetry run source-nexus-datasets check --config integration_tests/config.json
Copy code
:~/devl/airbyte/airbyte-integrations/connectors/source-nexus-datasets$ poetry run source-nexus-datasets check --config integration_tests/config.json
Encountered an error while checking availability of stream datasets. Error: Invalid URL '/?mode=': No scheme supplied. Perhaps you meant https:///?mode=?Error traceback:
 Traceback (most recent call last):
  File "/home/dilanalex/devl/airbyte/airbyte-integrations/connectors/source-nexus-datasets/.venv/lib/python3.10/site-packages/airbyte_cdk/sources/declarative/checks/check_stream.py", line 113, in _check_stream_availability
    stream_is_available, reason = evaluate_availability(stream, logger)
Seems like it cannot build the URL..
k
A message from kapa.ai
Based on the error message you provided:
Copy code
Invalid URL '/?mode=': No scheme supplied. Perhaps you meant https:///?mode=?
This indicates that the connector is attempting to make a request to a URL that is missing the scheme (e.g.,
https://
). The path being used is just
/?mode=
, which is not a valid full URL. What this means in the context of Airbyte CDK: - The
url_base
property (or equivalent configuration) in your stream or retriever definition is likely missing or not being set correctly. - When the CDK tries to build the full request URL, it ends up with just the path and query string, but no scheme or host. What to check: - Ensure that your stream or retriever configuration includes a valid
url_base
(e.g.,
https://api.example.com
). - In config-based connectors, the
url_base
is a required property for HTTP requests, as described in the documentation for components like `HttpRequestRegexMatcher`: > Use
url_base
to specify the scheme and host (without trailing slash) and
url_path_pattern
to apply a regex to the request path [HttpRequestRegexMatcher Reference](https://docs.airbyte.com/platform/1.7/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/HttpRequestRegexMatcher). - If you are using a declarative YAML or Python CDK, double-check that the
url_base
is set and not empty or missing. Summary: The error is caused by a missing or improperly set
url_base
in your connector configuration, resulting in an invalid URL. Make sure your stream or retriever is configured with a valid
url_base
that includes the scheme and host (e.g.,
https://api.example.com
). The knowledge sources do not provide more specific troubleshooting steps for this exact error, but this is the expected cause and solution based on the Airbyte CDK documentation.
d
@kapa.ai This was working well in the cdk version 6.57.1. I 'm giving you the streams part of my manifest.yaml file.
Copy code
streams:
  - type: DeclarativeStream
    name: datasets # Name of your data stream
    $parameters:
      # Dynamic path construction using config properties
      path: "{{ config['dataset_path'] }}/{{ config['dataset_name'] }}/{{ config['dataset_export_prefix'] }}?mode={{ config['mode'] }}"
    retriever:
      type: SimpleRetriever
      record_selector:
        type: RecordSelector
        extractor:
          type: DpathExtractor
          field_path: [] # Assuming the records are at the root of the response, adjust if nested
      requester:
        $ref: "#/definitions/base_requester" # Reference the shared requester
      decoder:
        type: CustomDecoder # Now using CustomDecoder
        class_name: source_nexus_datasets.components.decorder.FlexibleDecoder # Pointing to your new Python class
        $parameters: # Parameters passed to FlexibleDecoder's __init__
          # file_type is removed from here as it's inferred from Content-Type header
          config: "{{ config }}" # Explicitly pass the config object (REQUIRED for 6.36.2 CustomDecoder)
has things changed in the latest versions ?
k
A message from kapa.ai
Based on the knowledge sources provided, there have indeed been changes in the Airbyte CDK regarding how URLs are constructed for HTTP requests in declarative connectors. In older versions (such as 6.57.1), it was common to use a combination of
url_base
(defined in a shared requester or in
definitions
) and a dynamic
path
(often templated with config values) to build the full request URL. Your manifest snippet follows this pattern, referencing a
base_requester
that likely contains the
url_base
, and then using a dynamic
path
in the stream definition. In the latest versions of the Airbyte CDK (7.x and above), there is a notable change: - The
url_base
and
path
properties are now deprecated in favor of a single
url
property, which should contain the full URL (including scheme, host, and path). This is explicitly stated in the documentation for the
HttpRequester
component: >
url_base
and
path
are deprecated, use the
url
instead. > The URL of the source API endpoint. Do not put sensitive information (e.g. API tokens) into this field - Use the Authenticator component for this. [HttpRequester Reference](https://docs.airbyte.com/platform/1.7/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/HttpRequester) If you continue to use only a dynamic
path
without a valid
url_base
, or if your
base_requester
is not updated to use the new
url
property, the connector will attempt to make requests to incomplete URLs (like
/?mode=...
), resulting in the error you observed. What you should do: - Update your
base_requester
(or wherever you define the HTTP request details) to use the
url
property, which should be a full URL template, for example:
Copy code
yaml   url: "{{ config['dataset_path'] }}/{{ config['dataset_name'] }}/{{ config['dataset_export_prefix'] }}?mode={{ config['mode'] }}"
- Remove or update any usage of
url_base
and
path
to align with the new schema. Summary: Yes, things have changed in the latest Airbyte CDK versions. You now need to use the
url
property for the full endpoint, as
url_base
and
path
are deprecated. Update your manifest accordingly to avoid URL construction errors in Airbyte CDK 7.x and above [HttpRequester Reference](https://docs.airbyte.com/platform/1.7/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/HttpRequester).
d
@kapa.ai How about this parameter field
Copy code
streams:
  - type: DeclarativeStream
    name: datasets # Name of your data stream
    $parameters:
      # Dynamic path construction using config properties
      path: "{{ config['dataset_path'] }}/{{ config['dataset_name'] }}/{{ config['dataset_export_prefix'] }}?mode={{ config['mode'] }}"
Do I need to keep it or remove it?
k
A message from kapa.ai
Based on the knowledge sources, the
path
parameter in the
$parameters
field is typically used to dynamically construct the API endpoint path using config properties. However, in the latest Airbyte CDK versions (7.x and above), the recommended approach is to use the
url
property in your
HttpRequester
definition, which should contain the full URL (including scheme, host, and path). The
url_base
and
path
properties are deprecated and should be replaced by
url
 [HttpRequester Reference](https://docs.airbyte.com/platform/next/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/HttpRequester). What this means for your manifest: - If your
path
parameter is only used to construct the endpoint path and is referenced in the
HttpRequester
as part of a deprecated
path
property, you should update your manifest to use the
url
property instead. - If you update your
HttpRequester
to use the
url
property, you can move your dynamic URL construction logic there and remove the
path
parameter from
$parameters
if it is no longer referenced elsewhere. In summary: You should remove the
path
parameter from
$parameters
if you are migrating to the new
url
property in your
HttpRequester
and the
path
value is not used elsewhere in your manifest. All dynamic URL construction should now be handled in the
url
property. If your manifest or custom components still reference
path
, you may need to update those references to use the new
url
approach. If you are unsure, search your manifest for any usage of
path
and update accordingly.
d
@kapa.ai after making those changes, getting this error now
Copy code
Stderr:
                    Traceback (most recent call last):
                      File "/airbyte/integration_code/main.py", line 12, in <module>
                        source = SourceNexusDatasets()
                      File "/airbyte/integration_code/source_nexus_datasets/source.py", line 20, in __init__
                        super().__init__(**{"path_to_yaml": "manifest.yaml"})
                      File "/usr/local/lib/python3.10/site-packages/airbyte_cdk/sources/declarative/yaml_declarative_source.py", line 35, in __init__
                        super().__init__(
                      File "/usr/local/lib/python3.10/site-packages/airbyte_cdk/sources/declarative/concurrent_declarative_source.py", line 203, in __init__
                        self._source_config = self._pre_process_manifest(dict(source_config))
                      File "/usr/local/lib/python3.10/site-packages/airbyte_cdk/sources/declarative/concurrent_declarative_source.py", line 262, in _pre_process_manifest
                        propagated_manifest = ManifestComponentTransformer().propagate_types_and_parameters(
                      File "/usr/local/lib/python3.10/site-packages/airbyte_cdk/sources/declarative/parsers/manifest_component_transformer.py", line 177, in propagate_types_and_parameters
                        field_value[i] = self.propagate_types_and_parameters(
                      File "/usr/local/lib/python3.10/site-packages/airbyte_cdk/sources/declarative/parsers/manifest_component_transformer.py", line 125, in propagate_types_and_parameters
                        else {**current_parameters, **component_parameters}
                    TypeError: 'NoneType' object is not a mapping.
k
A message from kapa.ai
New message text here
d
@kapa.ai that error is gone now but getting previous error again,
Copy code
Encountered an error while checking availability of stream datasets. Error: Invalid URL '/ //?mode=': No scheme supplied. Perhaps you meant https:/// //?mode=?Error traceback:
 Traceback (most recent call last):
let me past the neccesary part of the manifest.yaml file,
Copy code
version: 7.3.1
#6.6.0 # Ensure this matches your pyproject.toml and base image

type: DeclarativeSource

check:
  type: CheckStream
  stream_names:
    - "datasets" # Assuming "datasets" is your primary data stream

definitions:
  # Base Requester with Authentication
  base_requester:
    type: HttpRequester
    url: "{{ config['base_url'] }} / {{ config['dataset_path'] }}/{{ config['dataset_name'] }}/{{ config['dataset_export_prefix'] }}?mode={{ config['mode'] }}"
    http_method: GET
    authenticator:
      type: CustomAuthenticator
      class_name: source_nexus_datasets.auth.NexusCustomAuthenticator # Ensure this Python class exists and is correctly implemented
      config: "{{ config }}"

streams:
  - type: DeclarativeStream
    name: datasets # Name of your data stream
    $parameters: {}
      # Dynamic path construction using config properties
      # path: "{{ config['dataset_path'] }}/{{ config['dataset_name'] }}/{{ config['dataset_export_prefix'] }}?mode={{ config['mode'] }}"
    retriever:
      type: SimpleRetriever
      record_selector:
        type: RecordSelector
        extractor:
          type: DpathExtractor
          field_path: [] # Assuming the records are at the root of the response, adjust if nested
      requester:
        $ref: "#/definitions/base_requester" # Reference the shared requester
      decoder:
        type: CustomDecoder # Now using CustomDecoder
        class_name: source_nexus_datasets.components.decorder.FlexibleDecoder # Pointing to your new Python class
        $parameters: # Parameters passed to FlexibleDecoder's __init__
          # file_type is removed from here as it's inferred from Content-Type header
          config: "{{ config }}" # Explicitly pass the config object (REQUIRED for 6.36.2 CustomDecoder)


    schema_loader:
      type: InlineSchemaLoader
      schema:
        $ref: "#/schemas/datasets" # Reference the schema defined below
k
A message from kapa.ai
The error:
Copy code
Invalid URL '/ //?mode=': No scheme supplied. Perhaps you meant https:/// //?mode=?
is caused by the way your
url
is constructed in the
base_requester
definition of your manifest. Specifically, your
url
field is:
Copy code
yaml url: "{{ config['base_url'] }} / {{ config['dataset_path'] }}/{{ config['dataset_name'] }}/{{ config['dataset_export_prefix'] }}?mode={{ config['mode'] }}"
Notice the spaces around the
/
after
config['base_url']
. This will result in a URL like:
Copy code
https://your-base-url.com / your-dataset-path/your-dataset-name/your-export-prefix?mode=your-mode
YAML and Jinja will not automatically trim these spaces, so the resulting URL is invalid, and if any of the config values are empty, you may end up with just
/ //?mode=
, which is not a valid URL and lacks a scheme. How to fix: - Remove the spaces around the
/
in your
url
template so it concatenates cleanly:
Copy code
yaml url: "{{ config['base_url'] }}/{{ config['dataset_path'] }}/{{ config['dataset_name'] }}/{{ config['dataset_export_prefix'] }}?mode={{ config['mode'] }}"
This will ensure the URL is constructed correctly, e.g.:
Copy code
https://your-base-url.com/your-dataset-path/your-dataset-name/your-export-prefix?mode=your-mode
Summary: The error is due to extra spaces in your
url
template, which leads to an invalid URL. Remove the spaces so the URL is constructed properly. This approach is consistent with the Airbyte CDK documentation, which expects a valid URL in the
url
property of the
HttpRequester
component [HttpRequester Reference](https://docs.airbyte.com/platform/next/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/HttpRequester).
d
@kapa.ai made that change and now getting this error,
Copy code
{"type":"LOG","log":{"level":"ERROR","message":"Check failed"}}
{"type":"CONNECTION_STATUS","connectionStatus":{"status":"FAILED","message":"\"Encountered an error while checking availability of stream datasets. Error: Invalid URL '///?mode=': No scheme supplied. Perhaps you meant https://///?mode=?\""}}
k
A message from kapa.ai
Your error:
Copy code
Invalid URL '///?mode=': No scheme supplied. Perhaps you meant https://///?mode=?
indicates that the constructed URL is still missing the scheme and host (e.g.,
https://api.example.com
). The resulting URL is just
///?mode=
, which means that one or more of your config values—most likely `config['base_url']`—is empty or not being set correctly. What to check: 1. Ensure
config['base_url']
is set and not empty
The
url
property in your manifest relies on
config['base_url']
. If this value is missing or empty in your
integration_tests/config.json
or wherever you provide config, the URL will be invalid. 2. Check your config file Open your
integration_tests/config.json
and make sure it contains a valid
base_url
entry, for example:
Copy code
json    {      "base_url": "https://api.example.com",      "dataset_path": "somepath",      "dataset_name": "somename",      "dataset_export_prefix": "someprefix",      "mode": "Full"    }
3. No extra slashes Make sure your
base_url
does not end with a slash, as your template already adds one:
Copy code
yaml    url: "{{ config['base_url'] }}/{{ config['dataset_path'] }}/{{ config['dataset_name'] }}/{{ config['dataset_export_prefix'] }}?mode={{ config['mode'] }}"
Summary: This error is caused by a missing or empty
base_url
in your config, resulting in an invalid URL. Double-check your config file to ensure all required fields are present and correctly set. The Airbyte CDK expects a valid URL in the
url
property of the
HttpRequester
component, and missing config values will lead to this kind of error [HttpRequester Reference](https://docs.airbyte.com/platform/next/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/HttpRequester).
d
@kapa.ai I have this content in the integration_tests/config.json,
Copy code
{
  "base_url": "https://8ff80ec62f854c77b80efd029308a60d-infornexus.info",
  "user_id": "Agentcj@571798861",
  "access_key_id": "somekey",
  "secret_key": "somesecret",
  "api_key": "1234",
  "dataset_path": "rest/3.1/analytics/dataset",
  "dataset_name": "PurchaseOrderexportTest2",
  "dataset_export_prefix": "export",
  "file_type": "JSONL",
  "mode": "Full"
}
Any other change that I need to do? I mean anything specific to be done for this newer cdk version ?
k
A message from kapa.ai
Based on the knowledge sources, here are the key points and checks for using the newer Airbyte CDK (7.x) with your config and manifest: 1. URL Construction: Your
base_url
in
config.json
is set as:
Copy code
"https://8ff80ec62f854c77b80efd029308a60d-infornexus.info"
However, the angle brackets (
<
and
>
) are not valid in a URL and should be removed. It should be:
Copy code
"base_url": "https://8ff80ec62f854c77b80efd029308a60d-infornexus.info"
2. Manifest
url
Property:
In Airbyte CDK 7.x, you should use the
url
property in your
HttpRequester
definition, and it should be a valid, fully constructed URL. Your manifest should look like:
Copy code
yaml    url: "{{ config['base_url'] }}/{{ config['dataset_path'] }}/{{ config['dataset_name'] }}/{{ config['dataset_export_prefix'] }}?mode={{ config['mode'] }}"
Make sure there are no extra slashes or spaces. 3. Required Config Fields: All config fields referenced in your manifest (such as
base_url
,
dataset_path
,
dataset_name
,
dataset_export_prefix
, and
mode
) must be present and non-empty in your
config.json
. 4. No Deprecated Fields: Do not use deprecated fields like
url_base
or
path
in your manifest. Only use
url
as per the latest documentation [HttpRequester Reference](https://docs.airbyte.com/platform/next/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/HttpRequester). 5. No Additional Required Changes Noted: The knowledge sources do not mention any other specific changes required for the newer CDK version beyond the migration from `url_base`/`path` to
url
and ensuring valid config values. Summary: - Remove angle brackets from your
base_url
in
config.json
. - Ensure your manifest uses the
url
property (not
url_base
or
path
). - Make sure all config values are present and valid. - No other specific changes are required for CDK 7.x according to the provided documentation. If you follow these steps and still encounter issues, the knowledge sources do not provide further troubleshooting for this scenario.
d
@kapa.ai I moved to cdk version 6.61 and now I can use it. Now running
poe test-all
and seems two failed steps,
Copy code
.tmp/integration_tests/test_airbyte_standards.py::TestSuite::test_docker_image_build_and_spec <- ../../../venv_airbyte/lib/python3.11/site-packages/airbyte_cdk/test/standard_tests/docker_base.py Building image: airbyte/source-nexus-datasets:dev-latest-amd64 (ArchEnum.AMD64)
Running command: docker buildx build --platform linux/amd64 --file /home/dilanalex/devl/airbyte/airbyte-integrations/connectors/source-nexus-datasets/build/docker/Dockerfile --label io.airbyte.version=0.1.0 --label io.airbyte.name=airbyte/source-nexus-datasets --build-arg BASE_IMAGE=docker.io/airbyte/python-connector-base:3.0.2@sha256:73697fbe1c0e2ebb8ed58e2268484bb4bfb2cb56b653808e1680cbc50bafef75 --build-arg CONNECTOR_NAME=source-nexus-datasets --build-arg EXTRA_BUILD_SCRIPT= -t airbyte/source-nexus-datasets:dev-latest-amd64 /home/dilanalex/devl/airbyte/airbyte-integrations/connectors/source-nexus-datasets
FAILED
.tmp/integration_tests/test_airbyte_standards.py::TestSuite::test_docker_image_build_and_check['config' Test Scenario] <- ../../../venv_airbyte/lib/python3.11/site-packages/airbyte_cdk/test/standard_tests/docker_base.py Building image: airbyte/source-nexus-datasets:dev-latest-amd64 (ArchEnum.AMD64)
Running command: docker buildx build --platform linux/amd64 --file build/docker/Dockerfile --label io.airbyte.version=0.1.0 --label io.airbyte.name=airbyte/source-nexus-datasets --build-arg BASE_IMAGE=docker.io/airbyte/python-connector-base:3.0.2@sha256:73697fbe1c0e2ebb8ed58e2268484bb4bfb2cb56b653808e1680cbc50bafef75 --build-arg CONNECTOR_NAME=source-nexus-datasets --build-arg EXTRA_BUILD_SCRIPT= -t airbyte/source-nexus-datasets:dev-latest-amd64 .
FAILED
Other steps are passed, I'm usign airbyte abctl and do not use docker to create images.
k
A message from kapa.ai
Sorry @dilan silva, I am experiencing especially high traffic right now, please try again. 🧑‍💻
A message from kapa.ai
Based on the knowledge sources, the errors you are seeing during `poe test-all`:
Copy code
FAILED .tmp/integration_tests/test_airbyte_standards.py::TestSuite::test_docker_image_build_and_spec ... FAILED .tmp/integration_tests/test_airbyte_standards.py::TestSuite::test_docker_image_build_and_check['config' Test Scenario]
are related to the Docker image build process for your connector. The test suite is attempting to build your connector image using
docker buildx build
and a specific Dockerfile, but the build is failing. Key points from the documentation: - The standard test suite for connectors runs tests against the connector's Docker image. It expects to be able to build the image using the provided Dockerfile and configuration [Acceptance Tests Reference](https://docs.airbyte.com/platform/connector-development/testing-connectors/connector-acceptance-tests-reference). - The build process uses the
BASE_IMAGE
argument, which should point to a valid Airbyte Python connector base image. - The test suite does not require you to manually build the image with Docker; it handles the build process as part of the test run. What could be happening: - If you are using
abctl
and not building images manually, the test runner still expects to be able to build the image using Docker under the hood. - If there is an issue with the Dockerfile, the build context, or the base image reference, the build will fail and the related tests will also fail. What to check: - Ensure that your connector directory contains a valid Dockerfile at the expected path (
build/docker/Dockerfile
). - Make sure the
BASE_IMAGE
argument in your Dockerfile matches the base image specified in your
metadata.yaml
and is accessible. - Verify that Docker is running and accessible from your environment, as the test suite uses Docker to build and test the image. Summary: The test failures are due to issues building your connector's Docker image, which is required for the standard test suite. Even if you use
abctl
, the test process itself uses Docker to build and test the image. The knowledge sources do not provide more specific troubleshooting steps for this scenario, but checking your Dockerfile, base image, and Docker environment is recommended [Acceptance Tests Reference](https://docs.airbyte.com/platform/connector-development/testing-connectors/connector-acceptance-tests-reference).
d
@kapa.ai the only dockerfile I can see in
airbyte-integrations/bases/base/
directory. For my connector root there is no dockerfile. Even in the other connectors there is no dockerfile.
k
A message from kapa.ai
You are correct—**for Python connectors, you are not required to have a Dockerfile in your connector root directory**. In fact, for certified Python connectors, Airbyte enforces the use of the Python connector base image, and the build process is managed by Airbyte’s internal tooling (such as
airbyte-ci
or Poe tasks), not by a custom Dockerfile. The Dockerfile is removed from the connector folder, and the base image is referenced in the
metadata.yaml
file under
data.connectorBuildOptions.baseImage
 [Migration Guide: How to make a python connector use our base image](https://docs.airbyte.com/platform/next/connector-development/cdk-python/migration-to-base-image). From the documentation: > Connectors must use our Python connector base image (`docker.io/airbyte/python-connector-base`), declared through the
connectorBuildOptions.baseImage
in their
metadata.yaml
. This is to ensure that all connectors use a base image which is maintained and has security updates [QA Checks - Security](https://docs.airbyte.com/platform/next/contributing-to-airbyte/resources/qa-checks#-security). If you are seeing test failures related to Docker image building, it is likely because the test runner is expecting to use the Airbyte build system, which does not require a Dockerfile in your connector directory. Instead, it uses the base image and your Python code to build the image automatically. Summary: - You do not need a Dockerfile in your connector root for Python connectors. - The build process uses the base image specified in
metadata.yaml
. - This is the expected and recommended approach for Python connectors in Airbyte. If you are still seeing build errors, ensure your
metadata.yaml
is correctly configured and that you are using the supported build tools as described in the documentation.
d
@kapa.ai I want to keep a different stream for the check operation in the manifest.yaml file. I do not want to show that in the streams in my connector to the user, I want that stream only for the check and basic read operation. is that possible?
k
A message from kapa.ai
Based on the available knowledge sources, there is no explicit documentation stating that you can define a stream in your
manifest.yaml
solely for use in the
check
operation and have it hidden from the list of streams exposed to the user. The
CheckStream
object allows you to specify which streams to use for the check operation via the
stream_names
property, but it does not mention the ability to define a stream exclusively for check purposes that is not also listed in the main
streams
section [CheckStream Reference](https://docs.airbyte.com/platform/1.7/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/CheckStream). Additionally, while the connector specification allows you to hide configuration fields from the UI using
"airbyte_hidden": true
, this mechanism is for configuration fields, not streams [Hiding inputs in the UI](https://docs.airbyte.com/platform/1.7/connector-development/connector-specification-reference#hiding-inputs-in-the-ui). Summary: The knowledge sources do not provide a way to define a stream that is used only for the check operation and hidden from the user in the manifest. All streams defined in the
streams
section are exposed to the user. If you need this functionality, it is not currently documented as supported.
d
@kapa.ai I have only one stream and the data is streamed is totally based on the config fields which entered by the user, for example, my stream is datasets and the data set name is entered by the user at the time of creating the connector. So for the check and basic read operation s, I cannot use that stream directly.
k
A message from kapa.ai
Based on the knowledge sources, Airbyte’s config-based (low-code) connector framework allows you to specify which streams are used for the
check
operation via the
stream_names
property in the
CheckStream
object. However, **all streams referenced in
stream_names
for the check must be defined in the main
streams
section of your manifest**—there is no documented way to define a stream solely for check/basic read that is hidden from the user or not listed in
streams
 [CheckStream Reference](https://docs.airbyte.com/platform/next/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/CheckStream). If your only stream (
datasets
) is fully dynamic and depends on user-provided config (such as the dataset name), and you cannot use it for check/basic read without valid user input, the framework does not provide a built-in mechanism to define a “hidden” or check-only stream. All streams must be declared in the
streams
list, and those are what the user will see and be able to select. Summary: - You must define all streams (including those used for check) in the
streams
section. - There is no supported way, according to the documentation, to have a stream used only for check/basic read that is not visible to the user. - If your stream is fully dynamic and cannot be used for check without user input, you may need to handle this limitation in your connector logic, but the manifest itself does not support hidden or check-only streams. If you need more advanced behavior, such as dynamic or hidden streams, this is not currently documented as supported in the config-based connector framework.
d
@kapa.ai Can we skip the basic_read operation?
k
A message from kapa.ai
Yes, you can skip the
basic_read
operation in your connector acceptance tests by providing a
bypass_reason
in your
acceptance-test-config.yml
when the test cannot be run for a valid technical or organizational reason. This is explicitly supported and documented for cases where a test cannot be executed. For example:
Copy code
yaml acceptance_tests:   basic_read:     bypass_reason: "Basic read cannot be performed due to connector limitations."
This approach is especially relevant when using a high test strictness level, where all acceptance tests must be declared, and a
bypass_reason
must be filled in if a test can't run [Strictness level](https://docs.airbyte.com/platform/1.7/connector-development/testing-connectors/connector-acceptance-tests-reference#strictness-level). So, yes, you can skip the
basic_read
operation by providing a valid
bypass_reason
in your test configuration
.
d
@kapa.ai I'm running
poe test-all
, even though I made the change you suggested it still perform the basic_read operation,
Copy code
.tmp/integration_tests/test_airbyte_standards.py::TestSuite::test_basic_read['config' Test Scenario]
k
A message from kapa.ai
According to the Airbyte documentation, you can skip the
basic_read
operation in your acceptance tests by specifying a
bypass_reason
for the
basic_read
test in your
acceptance-test-config.yml
file. For example:
Copy code
yaml acceptance_tests:   basic_read:     bypass_reason: "Basic read cannot be performed due to connector limitations."
When you set a
bypass_reason
, the acceptance test runner should recognize this and skip the
basic_read
test, as documented for strictness levels and test configuration [Strictness level](https://docs.airbyte.com/platform/1.7/connector-development/testing-connectors/connector-acceptance-tests-reference#strictness-level). However, if you are running
poe test-all
and still see the
basic_read
test being executed, the knowledge sources do not provide explicit details about how
poe test-all
interprets the
bypass_reason
or whether it always respects this configuration. The documentation focuses on the acceptance test runner's behavior, not the specifics of the
poe test-all
task. Summary: - The documented way to skip
basic_read
is to set a
bypass_reason
in your test config. - If
poe test-all
still runs the test, the knowledge sources do not explain why, and there may be a difference in how
poe
tasks interpret the config compared to the acceptance test runner. - There is not enough information in the knowledge sources to provide a definitive answer for this specific behavior with
poe test-all
.
d
@kapa.ai Is there a way to overwrite the poe tasks for my connector? so I can define the task only relevant to the connector.
k
A message from kapa.ai
The knowledge sources state that Poe the Poet is used as a common task interface for defining and running development tasks in Airbyte. Each connector directory can have its own specific list of available Poe tasks, and these may vary by connector and connector type (Java vs Python vs manifest-only). You are encouraged to run
poe
on its own within a connector directory to see what commands are available. Additionally, the documentation mentions that Poe tasks are there to help you, but they are not the only way to run a task. You are encouraged to review, copy, paste, or combine steps from the task definitions in the
poe_tasks
directory, and if you find task invocation patterns that are especially helpful, you are invited to contribute back to those task definition files by creating a new PR. This implies that you can customize or extend Poe tasks for your connector by modifying or adding task definitions in your connector's directory or by contributing to the global
poe_tasks
directory at the root of the Airbyte repo [Tooling](https://docs.airbyte.com/platform/next/connector-development/local-connector-development#tooling). Summary: Yes, you can overwrite or define Poe tasks relevant only to your connector by customizing the task definitions in your connector directory or by contributing to the global Poe task definitions. Run
poe
in your connector directory to see and manage available tasks.
d
@kapa.ai for spec or basic read operations, does airbyte call the endpoint which has been defined in the config file ? That means the endpoint should be publicly accessible right ?
k
A message from kapa.ai
Yes, for the
spec
and
basic read
operations, Airbyte will use the endpoint defined in your connector's configuration file. This means that the endpoint specified (for example, in the
base_url
or
url
field of your config) must be accessible from the environment where Airbyte is running. If you are running Airbyte in the cloud or in a CI environment, the endpoint should be publicly accessible or accessible from that environment, otherwise the connection and data retrieval will fail due to network or authentication errors. This is consistent with the Airbyte connector requirements, which state that the connector must be able to connect to the configured source or destination endpoint to perform operations like
check
,
spec
,
discover
, and
read
 [Configuration Requirements](https://docs.airbyte.com/platform/next/connector-development/partner-certified-destinations#configuration-requirements). If the endpoint is not accessible, Airbyte will not be able to validate the configuration or perform sync operations.
d
@kapa.ai so my connector endpoint is dynamic, meaning user has to enter the name of the data set to complete the full endpoint url, so this data set name is not available at the time the acceptance test is running. So how do I address this ?
k
A message from kapa.ai
Based on the knowledge sources, Airbyte acceptance tests (including
check
,
spec
, and
basic_read
) require that all necessary configuration fields—including dynamic ones like a dataset name—are provided in the connector's config file (e.g.,
config.json
) at test time. The acceptance test runner uses this config to construct the endpoint and perform operations. If your connector endpoint is dynamic and depends on a user-supplied value (like a dataset name), you must provide a valid value for this field in your test configuration file (
integration_tests/config.json
or similar) so that the acceptance tests can run successfully. The documentation does not describe a way to skip providing required config fields or to defer their population until after the tests run. All required fields must be present and valid for the tests to pass [Acceptance Tests Reference](https://docs.airbyte.com/platform/next/connector-development/testing-connectors/connector-acceptance-tests-reference). If you cannot provide a valid value for the dataset name at test time (for example, if it is not known or cannot be hardcoded), you may need to: - Use a test or dummy dataset that is always available for testing purposes. - If a test cannot be run for a valid technical or organizational reason, you can provide a
bypass_reason
in your
acceptance-test-config.yml
to skip specific tests (such as
basic_read
) [Strictness level](https://docs.airbyte.com/platform/1.7/connector-development/testing-connectors/connector-acceptance-tests-reference#strictness-level). Summary: You must provide all required dynamic config fields (like dataset name) in your test config file for acceptance tests to work. If this is not possible, you can skip certain tests by providing a
bypass_reason
in your test configuration. There is no documented way to defer or dynamically prompt for these values during the test run.
d
@kapa.ai OK how do I start to publish my connector into airbyte repo / marketplace? I already forked a branch and my code is there.
k
A message from kapa.ai
To publish your connector to the Airbyte repository and marketplace, follow these steps: ### 1. For Connectors Built with Connector Builder (Low-Code) If you built your connector using the Connector Builder UI, you can contribute it directly from the Builder: 1. In the Connector Builder, click Publish → Contribute to Marketplace. 2. Fill out the form with your connector description and provide your GitHub Personal Access Token (PAT) with the required scopes. 3. Click Contribute. The Builder will automatically create a pull request on your behalf to the Airbyte catalog. 4. The Airbyte Marketplace team will review your PR. Reviews typically take under a week. For details on obtaining a GitHub PAT and the process, see the documentation: [Contribute a New Connector](https://docs.airbyte.com/platform/next/contributing-to-airbyte/submit-new-connector). --- ### 2. For Custom Python CDK or Java CDK Connectors If you have developed a custom connector (not with the Builder), follow this process: 1. Start a Discussion or Issue: - Check if there is an existing [Discussion](https://github.com/airbytehq/airbyte/discussions/categories/new-connector-request) for your connector idea. - If not, [Request a New Connector](https://github.com/airbytehq/airbyte/discussions/new?category=new-connector-request) to ensure your contribution does not overlap with existing work. 2. Prepare Your Pull Request: - Make sure your connector passes
airbyte-ci connectors test
(or the equivalent Poe task). - Include a README, documentation, and an icon for your connector. - Follow the [pull request convention](https://docs.airbyte.com/platform/next/contributing-to-airbyte/resources/pull-requests-handbook#pull-request-title-convention). - If your connector requires authentication, be ready to provide a sandbox account for CI testing. 3. Submit Your Pull Request: - Open a PR from your forked branch to the Airbyte repository. - Wait for a review from a community maintainer or the Airbyte team. For more details, see: [Contribute a New Connector](https://docs.airbyte.com/platform/next/contributing-to-airbyte/submit-new-connector). --- Summary: - If you used the Connector Builder, publish directly from the UI. - If you built a custom connector, open a discussion/issue, ensure your connector passes tests, and submit a PR with all required documentation and assets. The Airbyte team will review your submission and guide you through any additional steps if needed.
d
@kapa.ai when creating the user facing documentation it says we need to specify the guidance for these two,
Copy code
### For Airbyte Cloud:
 ### For Airbyte Open Source:
Can you explain what is the difference between these two ?
k
A message from kapa.ai
The difference between the sections "For Airbyte Cloud:" and "For Airbyte Open Source:" in user-facing connector documentation is to provide setup instructions tailored to the two main ways users can run Airbyte: - For Airbyte Cloud: This section should give step-by-step instructions for users who are using the managed Airbyte Cloud service. The process typically involves logging into the Airbyte Cloud web interface, navigating to the appropriate section, and configuring the connector through the UI. The documentation template for this section looks like:
Copy code
1. [Log into your Airbyte Cloud](https://cloud.airbyte.com/workspaces) account.     2. Click Sources and then click + New source.     3. On the Set up the source page, select CONNECTOR_NAME_FROM_METADATA from the Source type dropdown.     4. Enter a name for the CONNECTOR_NAME_FROM_METADATA connector.
- For Airbyte Open Source: This section is for users running the self-managed, open-source version of Airbyte (deployed locally or on their own infrastructure). The instructions here should guide users through the process in the open-source UI, which may differ slightly from the Cloud version. The template for this section is:
Copy code
1. Navigate to the Airbyte Open Source dashboard.
Why the distinction? The setup experience and UI may differ between Airbyte Cloud and the open-source version, so providing clear, environment-specific instructions helps users follow the correct steps for their deployment type. This distinction is required by Airbyte’s documentation QA checks and standard template [QA Checks - Documentation](https://docs.airbyte.com/platform/next/contributing-to-airbyte/resources/qa-checks#for-airbyte-cloud-section-of-the-documentation-follows-our-guidelines) [QA Checks - Documentation (Open Source)](https://docs.airbyte.com/platform/next/contributing-to-airbyte/resources/qa-checks#for-airbyte-open-source-section-of-the-documentation-follows-our-guidelines). In summary: - "For Airbyte Cloud:" — Instructions for users of the managed Airbyte Cloud service. - "For Airbyte Open Source:" — Instructions for users of the self-managed, open-source Airbyte platform. Each section ensures users have the right guidance for their specific Airbyte environment.
d
@kapa.ai Please explain how to use GSM for store the config details? Do I need to have my own account or airbyte provide a place to upload the config ?
k
A message from kapa.ai
To use Google Secrets Manager (GSM) for storing connector config details in Airbyte, you generally need to have your own Google Cloud account and set up GSM yourself. Airbyte does not provide a shared GSM instance for you to upload your configs; you are responsible for managing your own secrets in your own cloud environment. Here’s how it works according to the documentation: - For local development and CI: Airbyte tools and CI workflows expect secrets to be stored in your own Google Secrets Manager instance. You must create and manage these secrets in your GCP project. Each secret should be a fully formed JSON config object, and you should label them according to Airbyte’s conventions (e.g., with
connector
and
filename
labels). You authenticate to GSM using your own service account credentials, provided via environment variables (
GCP_PROJECT_ID
and
GCP_GSM_CREDENTIALS
) [Managing Connector Secrets in GSM](https://docs.airbyte.com/platform/next/connector-development/local-connector-development#managing-connector-secrets-in-gsm). - For Airbyte Cloud: Airbyte Cloud manages secrets for you using its own Google Cloud Secret Manager instance. You do not need to set up your own GSM for Airbyte Cloud; credentials are stored securely by Airbyte Cloud itself [Securing Airbyte Cloud](https://docs.airbyte.com/platform/operating-airbyte/security#securing-airbyte-cloud). - For self-managed Airbyte (Open Source/Enterprise): You are responsible for configuring and managing your own secret manager (GSM, AWS Secrets Manager, Azure Key Vault, or Hashicorp Vault). Airbyte recommends using an external secret manager instead of storing secrets in the Airbyte database, which is unencrypted by default [Secret Management](https://docs.airbyte.com/platform/next/deploying-airbyte/integrations/secrets). Summary: - For local development and self-managed Airbyte, you need your own GSM account and must upload/manage secrets yourself. - For Airbyte Cloud, Airbyte manages secrets for you—no need to set up GSM. If you need to store connector configs in GSM, you must use your own Google Cloud account and follow Airbyte’s conventions for secret storage and authentication.
d
@kapa.ai can I store them with my code ? so Airbyte can store them in their databases ?
k
A message from kapa.ai
Yes, you can store connector configuration details (such as credentials) with your code, and Airbyte will store them in its application database by default. However, be aware that in Airbyte Open Source, these secrets are stored in plain-text and not encrypted unless you configure an external secret manager (like Google Secrets Manager, AWS Secrets Manager, etc.). Airbyte highly recommends using an external secret manager to ensure secrets are not exposed. When you provide credentials or config details through the Airbyte UI or API, Airbyte stores them in its database so that syncs and connectors can use them. If you do not configure an external secret manager, these secrets will be stored in the Airbyte database by default [Secret Management](https://docs.airbyte.com/platform/next/deploying-airbyte/integrations/secrets). Summary: - Yes, you can store config details with your code, and Airbyte will store them in its database by default. - For better security, it is recommended to use an external secret manager, as the default database storage is not encrypted [Secret Management](https://docs.airbyte.com/platform/next/deploying-airbyte/integrations/secrets).
d
@kapa.ai For the moment I have stored config details in the config.json in the secrets folder for live acceptance test ? When I publish my code then can I puslish the config file as well ?
k
A message from kapa.ai
No, you should not publish your
config.json
file
(especially if it contains real credentials or sensitive information) when you submit your connector code to the Airbyte repository or marketplace. The
secrets
directory and its contents are intended for local development and testing only, and should be excluded from version control using
.gitignore
rules. This is explicitly mentioned in the documentation: > The
secrets
directory should be automatically excluded from git based upon repo-level
.gitignore
rules. It is always a good idea to confirm that this is true for your case, and please always use caution whenever handling sensitive credentials [Managing Connector Secrets in GSM](https://docs.airbyte.com/platform/next/connector-development/local-connector-development#managing-connector-secrets-in-gsm). When you publish your connector, you should not include any files containing real credentials or sensitive configuration. Instead, document the required configuration fields in your connector's README and user documentation, so users know what information they need to provide when setting up the connector. Summary: - Do not publish your
config.json
or any secrets with your connector code. - Ensure your
.gitignore
excludes the
secrets
directory. - Only include documentation about the required config fields, not the actual config file with sensitive data.
d
@kapa.ai I'm asking about the acceptance tests run by the airbyte before publishing the connector to market place, do I need to provide the base config to perform that operation ?
k
A message from kapa.ai
Yes, you do need to provide a base config (such as a
config.json
with valid, non-sensitive test credentials) for the acceptance tests that Airbyte runs before publishing your connector to the marketplace. The acceptance tests require credentials to a source/destination sandbox account to verify that the connector works as expected. This is explicitly stated in the documentation: > Connector Acceptance Tests: Connector-agnostic tests that verify that a connector adheres to the [Airbyte protocol](https://docs.airbyte.com/understanding-airbyte/airbyte-protocol). Credentials to a source/destination sandbox account are required [Testing Connectors](https://docs.airbyte.com/platform/next/connector-development/testing-connectors). You should not publish real or production credentials, but you must provide test credentials (often via a config file or secret manager) so that the Airbyte team and CI can run the required tests on your connector before it is accepted into the marketplace. The documentation also notes that to understand which secrets are required for a connector, you should consult the
metadata.yaml
and
acceptance-test-config.yml
files within the connector directory [Managing Connector Secrets in GSM](https://docs.airbyte.com/platform/next/connector-development/local-connector-development#managing-connector-secrets-in-gsm). If you cannot provide credentials for testing, this will block the acceptance process, as passing tests are required to merge a connector pull request [Testing Connectors](https://docs.airbyte.com/platform/next/connector-development/testing-connectors).
d
@kapa.ai Does Airbyte only supports GSM ?
k
A message from kapa.ai
No, Airbyte does not only support Google Secrets Manager (GSM). Airbyte supports multiple external secret managers for storing connector secrets, including: - AWS Secrets Manager - Google Secrets Manager (GSM) - Azure Key Vault - HashiCorp Vault You can configure Airbyte to use any of these external secret managers for storing sensitive connector configuration, or you can use the default (unencrypted) database storage if you do not configure an external manager [Secret Management](https://docs.airbyte.com/platform/next/deploying-airbyte/integrations/secrets) [Configuring External Connector Secret Management](https://docs.airbyte.com/platform/next/enterprise-setup/implementation-guide#configuring-external-connector-secret-management). So, Airbyte supports several secret management solutions, not just GSM.
d
@kapa.ai can you explain this option ?
Copy code
or you can use the default (unencrypted) database storage if you do not configure an external manager
k
A message from kapa.ai
Certainly! By default, if you do not configure an external secret manager (like AWS Secrets Manager, Google Secrets Manager, Azure Key Vault, or HashiCorp Vault), Airbyte will store connector secrets (such as API keys and passwords) directly in its configured database. This default storage is in plain-text and not encrypted. This means that anyone with access to the Airbyte database could potentially view these secrets. The Airbyte documentation states: > Airbyte's default behavior is to store connector secrets on your configured database. This will be stored in plain-text and not encrypted. > > Airbyte highly recommends storing connector secrets in an external secret manager to ensure secrets are not exposed [Secret Management](https://docs.airbyte.com/platform/next/deploying-airbyte/integrations/secrets). So, unless you explicitly set up an external secret manager, your sensitive connector configuration will be stored unencrypted in the Airbyte database, which is not recommended for production or sensitive environments. For better security, you should configure one of the supported external secret managers. If you need more details on how to configure an external secret manager, you can refer to the relevant documentation for your platform [Secret Management](https://docs.airbyte.com/platform/next/deploying-airbyte/integrations/secrets).
d
@kapa.ai How Airbyte will store the details in the database ? Do they asks from the developer when the time of publishing ? Because I know that config.json file is not committed and it is git ignored.
k
A message from kapa.ai
When you publish a connector to Airbyte, you do not commit or publish your
config.json
file
(which contains credentials or sensitive configuration) to the repository, as it is git-ignored and meant only for local development and testing. How Airbyte stores configuration details: - When a user sets up a connector in Airbyte (either Open Source or Cloud), they provide the required configuration (such as credentials) through the Airbyte UI or API. - Airbyte then stores these configuration details as JSON blobs in its database. If a field is marked as a secret (using
airbyte_secret: true
in the connector spec), Airbyte will treat it as sensitive and handle it accordingly. - By default, if you do not configure an external secret manager, these secrets are stored in plain-text and not encrypted in the Airbyte database. Airbyte recommends using an external secret manager for better security [Secret Management](https://docs.airbyte.com/platform/next/deploying-airbyte/integrations/secrets). At the time of publishing your connector: - Airbyte does not ask the connector developer to provide production credentials or configuration for storage in the database. - Instead, the developer is expected to provide test credentials (for example, via GSM or other secret manager) so that Airbyte’s CI can run acceptance tests. These test credentials are not published with the connector code and are managed separately, often through secret management integrations or CI configuration [Managing Connector Secrets in GSM](https://docs.airbyte.com/platform/next/connector-development/local-connector-development#managing-connector-secrets-in-gsm). Summary: - The
config.json
file is not published or committed. - Airbyte stores user-provided configuration in its database (or external secret manager if configured) when the connector is set up by the user, not at the time of publishing the connector. - Developers are not asked to provide production config for storage in the Airbyte database during the publishing process.
d
@kapa.ai I do not have any secrete manager, so how do my connector acceptance test is run through the airbyte CI ?
k
A message from kapa.ai
New message text here
d
@kapa.ai OK. so lots of connectors using GSM for their secret store, like
Copy code
- name: SECRET_SOURCE-FILE_AZBLOB__CREDS
          fileName: azblob.json
          secretStore:
            type: GSM
            alias: airbyte-connector-testing-secret-store
Type seems to be GSM always, can you give me a expale for AWS or Azure ?
k
A message from kapa.ai
I'm sorry, but according to the knowledge sources, the only supported value for the
type
field in the
secretStore
object for connector test secrets in the
metadata.yaml
file is
GSM
(Google Secret Manager). The documentation explicitly states: > - `type`: Defines the secret store type, only
GSM
(Google Secret Manager) is currently supported > - `alias`: The alias of this secret store in our system, which is resolved into an actual secret store address by our CI. We currently have a single alias to store our connector test secrets:
airbyte-connector-testing-secret-store
  [Connector Metadata.yaml File](https://docs.airbyte.com/platform/1.7/connector-development/connector-metadata-file#the-connectortestsuitesoptions-section) There are no examples or documentation for using AWS Secrets Manager or Azure Key Vault in the
secretStore
object for connector test secrets in CI. If you need to use AWS or Azure for storing connector test secrets, the knowledge sources do not provide guidance or examples for this scenario.