Kiet Luu (Ken)
08/20/2025, 10:33 PMkapa.ai
08/20/2025, 10:33 PMKiet Luu (Ken)
08/20/2025, 10:40 PMkapa.ai
08/20/2025, 10:40 PMkapa.ai
08/20/2025, 10:40 PMKiet Luu (Ken)
08/20/2025, 10:41 PMkapa.ai
08/20/2025, 10:41 PMkapa.ai
08/20/2025, 10:41 PMdocker 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: 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).Kiet Luu (Ken)
08/21/2025, 1:56 AMkapa.ai
08/21/2025, 1:56 AMkapa.ai
08/21/2025, 1:56 AMKiet Luu (Ken)
08/22/2025, 12:52 AMversion: 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: truekapa.ai
08/22/2025, 12:52 AMkapa.ai
08/22/2025, 12:52 AMthrottler parameter you have defined under `base_requester`: 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: 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>.Kiet Luu (Ken)
08/22/2025, 12:53 AMkapa.ai
08/22/2025, 12:53 AMkapa.ai
08/22/2025, 12:54 AMapi_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. 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).Kiet Luu (Ken)
08/22/2025, 1:03 AMkapa.ai
08/22/2025, 1:03 AMkapa.ai
08/22/2025, 1:04 AMapi_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: 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.Kiet Luu (Ken)
08/22/2025, 1:37 AMtype: 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: InlineSchemaLoaderkapa.ai
08/22/2025, 1:38 AMkapa.ai
08/22/2025, 1:38 AMapi_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.