<@U04S8PLJWMT> where can i get the latest version ...
# ask-ai
k
@kapa.ai where can i get the latest version to use for my low code yaml builder? version: 6.33.4 type: DeclarativeSource
k
New message text here
k
if i am using the UI low code builder is that cdk or python cdk ? @kapa.ai
k
A message from kapa.ai
If you are using the UI low-code builder (Connector Builder) in Airbyte, you are using the low-code CDK, which is a part of the Python CDK. The low-code CDK allows you to define connectors using YAML, and the Connector Builder UI provides a no-code/low-code interface on top of this YAML format. You do not write Python code directly when using the UI; instead, the UI generates the YAML manifest, which is then interpreted by the low-code CDK (itself built on the Python CDK) to implement the connector's behavior. So, in summary: - Connector Builder UI → Low-code CDK (which is part of the Python CDK), but you are not directly using the Python CDK (i.e., you are not writing Python code) [source](https://docs.airbyte.com/platform/connector-development/connector-builder-ui/overview), [source](https://docs.airbyte.com/platform/connector-development/config-based/low-code-cdk-overview).
k
@kapa.ai help me understand abctl - what volume should i mount if i want to access all the logs on my host
k
A message from kapa.ai
To access all Airbyte logs on your host when using abctl, you should mount the Docker volume named airbyte_workspace. This volume contains the job attempt logs and related files. You can browse its contents by running a command like:
Copy code
docker run -it --rm --volume airbyte_workspace:/data busybox
This will give you a shell inside a container where you can navigate to the relevant log directories (e.g.,
/data/9/0/
for attempt logs). Alternatively, you can run commands directly, such as:
Copy code
docker run -it --rm --volume airbyte_workspace:/data busybox ls /data/9/0
This approach allows you to view and extract logs from the Airbyte workspace volume on your host machine. The logs are organized by job and attempt IDs within the
/data
directory inside the mounted volume. For more details, see the official documentation on [Exploring Local Logs](https://docs.airbyte.com/platform/next/operator-guides/browsing-output-logs#exploring-local-logs).
k
@kapa.ai help me understand how versioning works in the airbyte connector builder. if i published new version to the workspace, do i need to configure anything in existing connections to pick up that new version
k
A message from kapa.ai
Airbyte connectors follow [semantic versioning](https://semver.org/) with Major.Minor.Patch (e.g., 1.2.5). When you publish a new version of a connector (for example, using the Connector Builder), the way existing connections pick up the new version depends on the type of update: - Minor and Patch Updates: These are generally applied automatically and immediately to your instance in Airbyte Cloud. For self-managed (OSS/Enterprise), once you opt-in to updates, minor and patch versions are applied globally to all connectors of that type in your instance. No additional configuration is needed for existing connections to use the new version. - Major Updates: These require manual intervention. In Airbyte Cloud, you will be notified and given a window to upgrade. In self-managed environments, you must opt-in to the major version update, and it is recommended to review and potentially adjust each connection before applying the update. This ensures you can handle any breaking changes or required configuration updates. After the window closes (in Cloud), connections are automatically upgraded if you haven't done so manually. So, if you publish a new minor or patch version, existing connections will pick it up automatically (after opt-in for self-managed). For major versions, you need to manually upgrade each connection to use the new version and review any required changes to configuration or data models. Always review the changelog and migration guide before upgrading, especially for major versions, to understand the impact on your connections [Managing Connector Updates in Airbyte](https://docs.airbyte.com/platform/managing-airbyte/connector-updates), [Schema Change Management](https://docs.airbyte.com/platform/using-airbyte/schema-change-management#major-connector-version-upgrades). If you are using the Connector Builder in the UI, the same versioning and upgrade principles apply.
k
@kapa.ai given this custom builder yaml is the throttler param going to be used correctly by airbyte cloud / self host ?
Copy code
version: 6.48.15

type: DeclarativeSource

description: Source for the ticktick openapi endpoint at https://developer.ticktick.com/

check:
  type: CheckStream
  stream_names:
    - projects

definitions:
  streams:
    tasks:
      type: DeclarativeStream
      name: tasks
      retriever:
        type: SimpleRetriever
        decoder:
          type: JsonDecoder
        requester:
          $ref: "#/definitions/tasks_requester"
        record_selector:
          type: RecordSelector
          extractor:
            type: DpathExtractor
            field_path:
              - tasks
          record_filter:
            type: RecordFilter
            condition: "{{ record  }}"
        partition_router:
          type: SubstreamPartitionRouter
          parent_stream_configs:
            - type: ParentStreamConfig
              stream:
                $ref: "#/definitions/streams/projects"
              parent_key: id
              partition_field: parent_id
      primary_key:
        - id
      schema_loader:
        type: InlineSchemaLoader
        schema:
          $ref: "#/schemas/tasks"
    projects:
      type: DeclarativeStream
      name: projects
      retriever:
        type: SimpleRetriever
        decoder:
          type: JsonDecoder
        requester:
          $ref: "#/definitions/base_requester"
          path: /open/v1/project/
        record_selector:
          type: RecordSelector
          extractor:
            type: DpathExtractor
            field_path: []
          record_filter:
            type: RecordFilter
            condition: "{{ not record.closed }}"
          schema_normalization: Default
      primary_key:
        - id
      schema_loader:
        type: InlineSchemaLoader
        schema:
          $ref: "#/schemas/projects"
  base_requester:
    type: HttpRequester
    url_base: https://api.ticktick.com
    throttler:
      type: RateLimiter
      limit: 20
      period_in_seconds: 60
    authenticator:
      type: OAuthAuthenticator
      scopes:
        - "tasks:"
        - read
      client_id: "{{ config[\"client_id\"] }}"
      grant_type: client_credentials
      client_secret: "{{ config[\"client_secret\"] }}"
      access_token_value: "{{ config[\"client_access_token\"] }}"
    error_handler:
      type: DefaultErrorHandler
  tasks_requester:
    type: HttpRequester
    $ref: "#/definitions/base_requester"
    path: /open/v1/project/{{ stream_partition['parent_id'] }}/data
    http_method: GET

streams:
  - $ref: "#/definitions/streams/projects"
  - $ref: "#/definitions/streams/tasks"

spec:
  type: Spec
  advanced_auth:
    auth_flow_type: oauth2.0
    oauth_config_specification:
      complete_oauth_output_specification:
        required:
          - access_token
        properties:
          access_token:
            type: string
            path_in_connector_config:
              - client_access_token
      oauth_connector_input_specification:
        scope: "tasks: read"
        consent_url: >-
          https://ticktick.com/oauth/authorize?scope={{scope_value |
          urlEncode}}&client_id={{client_id_value}}&state={{state}}&redirect_uri={{redirect_uri_value}}&response_type=code
        extract_output:
          - access_token
        access_token_url: https://ticktick.com/oauth/token
        access_token_params:
          code: "{{ auth_code_value }}"
          scope: "{{ scope_value | urlEncode }}"
          grant_type: authorization_code
          redirect_uri: "{{ redirect_uri_value }}"
        access_token_headers:
          Content-Type: application/x-www-form-urlencoded
          Authorization: >-
            Basic {{ (client_id_value ~ ':' ~ client_secret_value) | b64encode
            }}
      complete_oauth_server_input_specification:
        required:
          - client_id
          - client_secret
        properties:
          client_id:
            type: string
          client_secret:
            type: string
      complete_oauth_server_output_specification:
        required:
          - client_id
          - client_secret
        properties:
          client_id:
            type: string
            path_in_connector_config:
              - client_id
          client_secret:
            type: string
            path_in_connector_config:
              - client_secret
  connection_specification:
    type: object
    $schema: http://json-schema.org/draft-07/schema#
    required:
      - client_id
      - client_secret
    properties:
      client_id:
        type: string
        order: 0
        title: Client ID
        airbyte_secret: true
      client_secret:
        type: string
        order: 1
        title: Client secret
        airbyte_secret: true
      client_access_token:
        type: string
        order: 2
        title: Access token
        airbyte_secret: true
    additionalProperties: true

metadata:
  assist: {}
  testedStreams:
    tasks:
      hasRecords: true
      streamHash: 24726f60c927c78c302080a26ab6d113686d7418
      hasResponse: true
      primaryKeysAreUnique: true
      primaryKeysArePresent: true
      responsesAreSuccessful: true
    projects:
      hasRecords: true
      streamHash: af52118779717dc55f707a9cc61f8b071f5e5df4
      hasResponse: true
      primaryKeysAreUnique: true
      primaryKeysArePresent: true
      responsesAreSuccessful: true
  autoImportSchema:
    tasks: true
    projects: true

schemas:
  tasks:
    type: object
    $schema: http://json-schema.org/schema#
    required:
      - id
    properties:
      id:
        type: string
      desc:
        type:
          - string
          - "null"
      etag:
        type:
          - string
          - "null"
      kind:
        type:
          - string
          - "null"
      tags:
        type:
          - array
          - "null"
        items:
          type:
            - string
            - "null"
      items:
        type:
          - array
          - "null"
        items:
          type:
            - object
            - "null"
          properties:
            id:
              type:
                - string
                - "null"
            title:
              type:
                - string
                - "null"
            status:
              type:
                - number
                - "null"
            isAllDay:
              type:
                - boolean
                - "null"
            timeZone:
              type:
                - string
                - "null"
            sortOrder:
              type:
                - number
                - "null"
      title:
        type:
          - string
          - "null"
      status:
        type:
          - number
          - "null"
      content:
        type:
          - string
          - "null"
      dueDate:
        type:
          - string
          - "null"
      columnId:
        type:
          - string
          - "null"
      isAllDay:
        type:
          - boolean
          - "null"
      priority:
        type:
          - number
          - "null"
      timeZone:
        type:
          - string
          - "null"
      projectId:
        type:
          - string
          - "null"
      sortOrder:
        type:
          - number
          - "null"
      startDate:
        type:
          - string
          - "null"
      repeatFlag:
        type:
          - string
          - "null"
    additionalProperties: true
  projects:
    type: object
    $schema: http://json-schema.org/schema#
    required:
      - id
    properties:
      id:
        type: string
      kind:
        type:
          - string
          - "null"
      name:
        type:
          - string
          - "null"
      color:
        type:
          - string
          - "null"
      closed:
        type:
          - boolean
          - "null"
      groupId:
        type:
          - string
          - "null"
      viewMode:
        type:
          - string
          - "null"
      sortOrder:
        type:
          - number
          - "null"
      permission:
        type:
          - string
          - "null"
    additionalProperties: true
k
A message from kapa.ai
Based on the provided YAML and the available knowledge sources, the
throttler
parameter you have defined under `base_requester`:
Copy code
yaml throttler:   type: RateLimiter   limit: 20   period_in_seconds: 60
is not a supported or recognized configuration in the Airbyte low-code YAML/CDK. The official documentation for rate limiting in the low-code YAML builder specifies that rate limiting should be configured using the
api_budget
block, not a
throttler
property under
HttpRequester
or similar objects. The supported way to define rate limits is as follows:
Copy code
yaml api_budget:     type: "HTTPAPIBudget"     ratelimit_reset_header: "X-RateLimit-Reset"     ratelimit_remaining_header: "X-RateLimit-Remaining"     status_codes_for_ratelimit_hit: [429, 420]     policies:       - type: "FixedWindowCallRatePolicy"         period: "PT1H"         call_limit: 1000         matchers:           - method: "GET"             url_base: "https://api.example.com"             url_path_pattern: "^/users"     # ... other policies ...
This
api_budget
block should be at the top level of your YAML, not inside a requester definition. There is no mention in the documentation of a
throttler
property being supported or used by Airbyte Cloud or self-hosted Airbyte in the low-code YAML builder context. If you want to enforce rate limiting, you should use the
api_budget
approach as described in the documentation [Rate limiting (API Budget)](https://docs.airbyte.com/platform/connector-development/config-based/understanding-the-yaml-file/rate-limit-api-budget#putting-it-all-together). In summary: The
throttler
parameter in your YAML will not be used by Airbyte Cloud or self-hosted Airbyte. You should use the
api_budget
block for rate limiting in low-code YAML connectors, as per the official documentation. If you need to implement rate limiting, please refactor your YAML to use
api_budget
instead<sup>[Rate limiting (API Budget)](https://docs.airbyte.com/platform/connector-development/config-based/understanding-the-yaml-file/rate-limit-api-budget#putting-it-all-together)</sup>.
k
help me port the correct yaml version using api budget @kapa.ai
k
A message from kapa.ai
Certainly! Here’s how you can port your YAML to use the correct
api_budget
block for rate limiting, based on the official Airbyte low-code YAML documentation. Replace your unsupported
throttler
property with an
api_budget
block at the top level of your YAML.
Below is an example that enforces a limit of 20 requests per 60 seconds for all requests to your API, using a
FixedWindowCallRatePolicy
. Adjust the
matchers
as needed for your use case.
Copy code
yaml version: 6.48.15  type: DeclarativeSource  description: Source for the ticktick openapi endpoint at https://developer.ticktick.com/  api_budget:   type: HTTPAPIBudget   # These headers are examples; use the actual headers returned by your API if different   ratelimit_reset_header: "X-RateLimit-Reset"   ratelimit_remaining_header: "X-RateLimit-Remaining"   status_codes_for_ratelimit_hit: [429]   policies:     - type: FixedWindowCallRatePolicy       period: "PT1M"         # 1 minute (60 seconds)       call_limit: 20       matchers:         - method: "GET"           url_base: "https://api.ticktick.com"           url_path_pattern: ".*"   # Applies to all endpoints; adjust as needed  check:   type: CheckStream   stream_names:     - projects  definitions:   streams:     tasks:       type: DeclarativeStream       name: tasks       retriever:         type: SimpleRetriever         decoder:           type: JsonDecoder         requester:           $ref: "#/definitions/tasks_requester"         record_selector:           type: RecordSelector           extractor:             type: DpathExtractor             field_path:               - tasks           record_filter:             type: RecordFilter             condition: "{{ record  }}"         partition_router:           type: SubstreamPartitionRouter           parent_stream_configs:             - type: ParentStreamConfig               stream:                 $ref: "#/definitions/streams/projects"               parent_key: id               partition_field: parent_id       primary_key:         - id       schema_loader:         type: InlineSchemaLoader         schema:           $ref: "#/schemas/tasks"     projects:       type: DeclarativeStream       name: projects       retriever:         type: SimpleRetriever         decoder:           type: JsonDecoder         requester:           $ref: "#/definitions/base_requester"           path: /open/v1/project/         record_selector:           type: RecordSelector           extractor:             type: DpathExtractor             field_path: []           record_filter:             type: RecordFilter             condition: "{{ not record.closed }}"           schema_normalization: Default       primary_key:         - id       schema_loader:         type: InlineSchemaLoader         schema:           $ref: "#/schemas/projects"   base_requester:     type: HttpRequester     url_base: https://api.ticktick.com     authenticator:       type: OAuthAuthenticator       scopes:         - "tasks:"         - read       client_id: "{{ config[\"client_id\"] }}"       grant_type: client_credentials       client_secret: "{{ config[\"client_secret\"] }}"       access_token_value: "{{ config[\"client_access_token\"] }}"     error_handler:       type: DefaultErrorHandler   tasks_requester:     type: HttpRequester     $ref: "#/definitions/base_requester"     path: /open/v1/project/{{ stream_partition['parent_id'] }}/data     http_method: GET  streams:   - $ref: "#/definitions/streams/projects"   - $ref: "#/definitions/streams/tasks"  # ... rest of your YAML remains unchanged ...
Key points: - The
api_budget
block is at the top level, not inside a requester. - The
policies
array defines your rate limit. Adjust
matchers
to target specific endpoints or methods as needed. - Remove the unsupported
throttler
property from your requester definitions. This approach is fully supported by Airbyte Cloud and self-hosted Airbyte for low-code connectors, as described in the documentation [Rate limiting (API Budget)](https://docs.airbyte.com/platform/connector-development/config-based/understanding-the-yaml-file/rate-limit-api-budget#putting-it-all-together).
k
@kapa.ai one second. the api endpoint don't really return headers with rate limit to wait for. I want to proactively implement my requests to send max 20 per minutes. how should that be implemented ?
k
A message from kapa.ai
If your API does not return rate limit headers and you want to proactively limit requests to a maximum of 20 per minute, you should still use the
api_budget
block with a
FixedWindowCallRatePolicy
in your YAML. The Airbyte low-code CDK will enforce this limit internally, even if the API does not provide rate limit headers. You do not need to specify the
ratelimit_reset_header
or
ratelimit_remaining_header
if your API does not provide them—these are optional and only used if present. The
FixedWindowCallRatePolicy
will ensure that no more than 20 requests are sent per minute. Here’s how you should configure it:
Copy code
yaml api_budget:   type: HTTPAPIBudget   policies:     - type: FixedWindowCallRatePolicy       period: "PT1M"         # 1 minute       call_limit: 20       matchers:         - method: "GET"           url_base: "https://api.ticktick.com"           url_path_pattern: ".*"
This configuration will proactively throttle your requests to 20 per minute, regardless of the presence of rate limit headers in the API responses. This is the recommended and supported approach in Airbyte’s low-code YAML builder for both Airbyte Cloud and self-hosted deployments [Rate limiting (API Budget)](https://docs.airbyte.com/platform/connector-development/config-based/understanding-the-yaml-file/rate-limit-api-budget#putting-it-all-together). Summary: - Use
api_budget
with
FixedWindowCallRatePolicy
. - Omit
ratelimit_reset_header
and
ratelimit_remaining_header
if your API does not provide them. - Airbyte will enforce the rate limit internally.
k
@kapa.ai I applied the api budget config. does it apply to this stream whihc uses partition router from parent stream ?
Copy code
type: DeclarativeStream
      name: tasks
      retriever:
        type: SimpleRetriever
        decoder:
          type: JsonDecoder
        requester:
          type: HttpRequester
          url_base: https://api.ticktick.com
          authenticator:
            type: OAuthAuthenticator
            scopes:
              - "tasks:"
              - read
            client_id: "{{ config[\"client_id\"] }}"
            grant_type: client_credentials
            client_secret: "{{ config[\"client_secret\"] }}"
            access_token_value: "{{ config[\"client_access_token\"] }}"
          error_handler:
            type: DefaultErrorHandler
          path: /open/v1/project/{{ stream_partition['parent_id'] }}/data
          http_method: GET
        record_selector:
          type: RecordSelector
          extractor:
            type: DpathExtractor
            field_path:
              - tasks
          record_filter:
            type: RecordFilter
            condition: "{{ record  }}"
        partition_router:
          type: SubstreamPartitionRouter
          parent_stream_configs:
            - type: ParentStreamConfig
              stream:
                type: DeclarativeStream
                name: projects
                retriever:
                  type: SimpleRetriever
                  decoder:
                    type: JsonDecoder
                  requester:
                    type: HttpRequester
                    url_base: https://api.ticktick.com
                    authenticator:
                      type: OAuthAuthenticator
                      scopes:
                        - "tasks:"
                        - read
                      client_id: "{{ config[\"client_id\"] }}"
                      grant_type: client_credentials
                      client_secret: "{{ config[\"client_secret\"] }}"
                      access_token_value: "{{ config[\"client_access_token\"] }}"
                    error_handler:
                      type: DefaultErrorHandler
                    path: /open/v1/project/
                  record_selector:
                    type: RecordSelector
                    extractor:
                      type: DpathExtractor
                      field_path: []
                    record_filter:
                      type: RecordFilter
                      condition: "{{ not record.closed }}"
                    schema_normalization: Default
                primary_key:
                  - id
                schema_loader:
                  type: InlineSchemaLoader
k
A message from kapa.ai
Yes, the
api_budget
configuration applies to all requests made by the connector, including those made by streams that use a
partition_router
such as
SubstreamPartitionRouter
. The rate limiting defined in the
api_budget
block is enforced globally for all matching requests, regardless of whether the requests are generated directly or through partitioned/parent-child stream relationships. As long as your
FixedWindowCallRatePolicy
(or other policies) in
api_budget
have matchers that match the requests made by your
tasks
stream (for example, matching the
url_base
, HTTP method, and path pattern), the rate limit will be enforced for those requests—even when the stream is partitioned by parent stream records. This is explicitly supported by the Airbyte low-code YAML configuration, as the
api_budget
is designed to control the rate of all outgoing HTTP requests that match its policies, regardless of how those requests are generated within the connector's streams or partition routers [Rate limiting (API Budget)](https://docs.airbyte.com/platform/connector-development/config-based/understanding-the-yaml-file/rate-limit-api-budget#putting-it-all-together). Summary: Your
api_budget
rate limiting will apply to the
tasks
stream, including all requests generated via the
SubstreamPartitionRouter
, as long as the requests match the policy's matchers.