Branko Djukic
08/27/2025, 2:52 PMkapa.ai
08/27/2025, 2:52 PMBranko Djukic
08/28/2025, 8:43 AMapiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: airbyte-ingress
annotations:
nginx.ingress.kubernetes.io/ssl-redirect: "false"
spec:
ingressClassName: nginx
rules:
- host: airbyte.com
http:
paths:
- backend:
service:
name: airbyte-airbyte-connector-builder-server-svc
port:
number: 80
path: /api/v1/connector_builder/
pathType: Prefix
- backend:
service:
name: airbyte-airbyte-server-svc
port:
number: 8001
path: /
pathType: Prefix
tls:
- secretName: airbyte-selfsigned-cert-tls
hosts:
- airbyte.comkapa.ai
08/28/2025, 8:45 AMkapa.ai
08/28/2025, 8:45 AMyaml metadata: annotations: nginx.ingress.kubernetes.io/proxy-body-size: "50m" nginx.ingress.kubernetes.io/proxy-read-timeout: "1800" nginx.ingress.kubernetes.io/proxy-send-timeout: "1800" (these values are suggested in community guidance for similar symptoms) ([timeouts/body size examples](https://github.com/airbytehq/airbyte/discussions/45946), [proxy-body-size fix](https://github.com/airbytehq/airbyte/issues/45423)).Branko Djukic
08/28/2025, 9:31 AMkapa.ai
08/28/2025, 9:31 AMkapa.ai
08/28/2025, 9:31 AMBranko Djukic
08/28/2025, 9:34 AMkapa.ai
08/28/2025, 9:34 AMkapa.ai
08/28/2025, 9:35 AMBranko Djukic
08/28/2025, 9:54 AMkapa.ai
08/28/2025, 9:55 AMBranko Djukic
08/28/2025, 9:56 AMkapa.ai
08/28/2025, 9:56 AMkapa.ai
08/28/2025, 9:57 AMyaml paginator: type: DefaultPaginator page_token_option: type: RequestOption field_name: from # or whatever param Cloudflare expects (e.g., starting_after) inject_into: request_parameter page_size_option: type: RequestOption field_name: limit # align with your API’s page-size param name inject_into: request_parameter pagination_strategy: type: CursorPagination page_size: 5000 cursor_value: "{{ response['result'][-1]['id'] if response['result'] else stream_slice.get('last_id', 0) }}" stop_condition: "{{ response['result']|length == 0 }}" Notes: - Replace field_name values with the exact parameter names your D1 endpoint expects (e.g., LIMIT is already in your SQL; if you keep LIMIT in the SQL, you may omit page_size_option. If you prefer to control LIMIT via paginator, remove it from SQL and let page_size_option inject it). - If your API returns a “next page URL” instead of an id, switch page_token_option to: yaml page_token_option: type: RequestPath and set cursor_value to that URL per the docs ([Cursor paginator in path](https://docs.airbyte.com/platform/1.7/connector-development/config-based/understanding-the-yaml-file/pagination#cursor)). Troubleshooting checklist: - Verify the parameter is actually injected on first and subsequent requests (Pagination > Parameter injection issues) ([Connector Builder pagination troubleshooting](https://docs.airbyte.com/platform/next/connector-development/connector-builder-ui/pagination#troubleshooting)). - If the base URL contains path segments and you switch to following full next URLs, be aware of an open issue where cursor-based next URLs could drop the base path; using RequestPath with a full URL avoids that pitfall ([issue about CursorPagination and url_base path](https://github.com/airbytehq/airbyte/issues/18136)). - If none of the built-in methods match the D1 response format, implement a Custom Pagination Strategy and reference it in the builder (class inheriting PaginationStrategy) ([Custom Pagination Strategy](https://docs.airbyte.com/platform/next/connector-development/connector-builder-ui/pagination#custom-pagination-strategy)). If you can confirm the exact parameter names Cloudflare D1 expects for “start after id” and page size, I can tailor the field_name values precisely.Branko Djukic
08/29/2025, 9:05 AMkapa.ai
08/29/2025, 9:05 AMkapa.ai
08/29/2025, 9:05 AMyaml streams: - name: table_batch_1 retriever: type: SimpleRetriever requester: $ref: "#/definitions/base_requester" path: query http_method: POST request_body_json: sql: > SELECT * FROM {{ config['tables'] }} WHERE id <= 20000 ORDER BY id record_selector: type: RecordSelector extractor: type: DpathExtractor field_path: ["result", "*", "results", "*"] transformations: - type: RemoveFields field_pointers: [["meta"]] schema_loader: type: InlineSchemaLoader schema: $ref: "#/schemas/fingerprint_events" - name: table_batch_2 retriever: type: SimpleRetriever requester: $ref: "#/definitions/base_requester" path: query http_method: POST request_body_json: sql: > SELECT * FROM {{ config['tables'] }} WHERE id > 20000 ORDER BY id record_selector: type: RecordSelector extractor: type: DpathExtractor field_path: ["result", "*", "results", "*"] transformations: - type: RemoveFields field_pointers: [["meta"]] schema_loader: type: InlineSchemaLoader schema: $ref: "#/schemas/fingerprint_events"] Notes: - Use two streams because Airbyte does not allow renaming individual streams dynamically; you select streams on the Schema tab and can prefix names if needed ([Configuring schemas → Select streams; Stream prefix](https://docs.airbyte.com/platform/using-airbyte/configuring-schema) and versions 1.6/1.7/Next). - If you want the LIMIT to be configurable, keep your config['batch_size'], but then fix the boundary explicitly: - First stream: WHERE id <= {{ config['batch_size'] }} - Second stream: WHERE id > {{ config['batch_size'] }} - Ensure your record_selector path matches the D1 response you already used. This approach avoids paginator usage entirely and relies on two fixed SQL queries, which is supported by the connector builder YAML pattern for SimpleRetriever and request_body_json ([Connector Builder request/selector pattern](https://docs.airbyte.com/platform/1.7/connector-development/connector-builder-ui/stream-templates)).Branko Djukic
08/29/2025, 12:33 PMraw_payload field being 2KB+)
2. Payload Size Limits: 20,000 records = ~61MB, 25,000 records = ~76MB
3. Airbyte 1.8.1 Changes: Stricter memory/timeout limits broke large payload handling
4. Pagination Failure: Cursor logic not advancing properly in new version
Evidence:
• D1 has all 31,788 records (confirmed via direct queries)
• Airbyte only makes 1 API request instead of multiple
• sourceStateMessagesEmitted: 1 (should be 2+ for pagination)
• Same connector worked before 1.8.1 upgrade
Issue Type:
Regression bug in Airbyte 1.8.1 affecting D1 connector's pagination and large response handling.
Impact:
• Missing ~11,788 records in data pipeline
• Incomplete data sync to Snowflake
• Breaking change without proper migration guidekapa.ai
08/29/2025, 12:33 PMkapa.ai
08/29/2025, 12:33 PM