<@U04S8PLJWMT> I’m building a declarative connecto...
# ask-ai
d
@kapa.ai I’m building a declarative connector in Builder for the App Store Connect Sales Reports API. The request works and I get a response, but instead of JSON it comes back as a gzip file with headers like:
Copy code
"headers": {
  "Content-Type": "application/a-gzip",
  "Content-Length": "59717",
  "Server": "daiquiri/5",
  "X-Rate-Limit": "user-hour-lim:3600;user-hour-rem:3598;"
}
The payload is a gzip-compressed TSV (tab-delimited) file that contains the report rows. ❓ How can I configure Builder to handle this type of response?
k
To handle a response that is a gzip-compressed TSV (tab-delimited) file in Airbyte's Connector Builder, you need to configure a nested decoder setup: 1. GzipDecoder: To decompress the gzip file. 2. CsvDecoder: To parse the TSV content (even though it's called CsvDecoder, you can set the delimiter to a tab character). Here’s how you can configure this in your declarative connector YAML:
Copy code
yaml response_decoder:   type: GzipDecoder   decoder:     type: CsvDecoder     delimiter: "\t"
- The
GzipDecoder
will decompress the response. - The inner
CsvDecoder
will parse the decompressed TSV data, using
\t
as the delimiter for tab-separated values. This approach is supported and documented in Airbyte, where you can nest decoders to handle multiple layers of encoding or compression. You can nest decoders recursively as needed for your use case, such as gzip-compressed files containing CSV or TSV data. Just ensure you specify the correct delimiter for TSV (
\t
) in the CsvDecoder configuration [Record processing: ZIP and gzip](https://docs.airbyte.com/platform/next/connector-development/connector-builder-ui/record-processing#zip-and-gzip) | [GzipDecoder reference](https://docs.airbyte.com/platform/next/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/GzipDecoder). Note: If your API uses a non-standard
Content-Type
(like
application/a-gzip
), Airbyte’s decoder should still work as long as you specify the correct decoder chain, since the decoding is based on your configuration, not just the header. If you encounter issues with the decoder not triggering due to the unusual
Content-Type
, you may need to check for any Airbyte-specific workarounds, but the above configuration is the standard and documented approach.
d
@kapa.ai I’m building a declarative connector for the App Store Connect Sales Report API. The response for sales reports comes as a gzip-compressed TSV file (
Content-Type: application/a-gzip
). I understand that I need to use a nested decoder like this:
Copy code
response_decoder:
  type: GzipDecoder
  decoder:
    type: CsvDecoder
    delimiter: "\t"
My question is: exactly where in the YAML should I place the
response_decoder
block
so that Airbyte correctly decompresses and parses the TSV without failing validation? Here’s a snippet of my
sales_report
stream for context:
Copy code
- type: DeclarativeStream
  name: sales_report
  retriever:
    type: SimpleRetriever
    record_selector:
      type: RecordSelector
      extractor:
        type: CustomRecordExtractor
    requester:
      type: HttpRequester
      http_method: GET
      url: https://api.appstoreconnect.apple.com/v1/salesReports
      authenticator:
        $ref: "#/definitions/linked/HttpRequester/authenticator"
      request_parameters:
        filter[frequency]: DAILY
        filter[reportDate]: "{{ day_delta(-2, format='%Y-%m-%d') }}"
        filter[reportSubType]: SUMMARY
        filter[reportType]: SALES
        filter[vendorNumber]: "232323"
        filter[version]: "1_0"
I want to make sure I place it in the right location so it passes validation in Connector Builder.
k
A message from kapa.ai
A message from kapa.ai
You should place the decoder configuration as the download_decoder property inside your stream’s retriever block. In the declarative YAML for Airbyte, the correct property is not
response_decoder
but
download_decoder
, and it should be a sibling to
requester
and
record_selector
within the
retriever
object. Here’s how your
sales_report
stream should look:
Copy code
yaml - type: DeclarativeStream   name: sales_report   retriever:     type: SimpleRetriever     requester:       type: HttpRequester       http_method: GET       url: https://api.appstoreconnect.apple.com/v1/salesReports       authenticator:         $ref: "#/definitions/linked/HttpRequester/authenticator"       request_parameters:         filter[frequency]: DAILY         filter[reportDate]: "{{ day_delta(-2, format='%Y-%m-%d') }}"         filter[reportSubType]: SUMMARY         filter[reportType]: SALES         filter[vendorNumber]: "90663340"         filter[version]: "1_0"     record_selector:       type: RecordSelector       extractor:         type: CustomRecordExtractor     download_decoder:       type: GzipDecoder       decoder:         type: CsvDecoder         delimiter: "\t"
- The
download_decoder
property is where you define how to decode the response, and it must be inside the
retriever
block. - This is supported and documented in the YAML reference for Airbyte’s config-based connector development [AsyncRetriever reference](https://docs.airbyte.com/platform/1.7/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/AsyncRetriever). Note: Using
download_decoder
in this way ensures that Airbyte will decompress the gzip file and then parse the TSV data as expected. The property name
response_decoder
is not recognized in this context and will fail validation. If you follow this structure, your connector should pass validation and process the gzip-compressed TSV correctly.
You should place the decoder block as download_decoder (not
response_decoder
) inside the
retriever
section of your stream definition. This is the documented and supported way to specify how Airbyte should decode and parse downloaded files in declarative connectors. Here’s how your YAML should look:
Copy code
yaml - type: DeclarativeStream   name: sales_report   retriever:     type: SimpleRetriever     requester:       type: HttpRequester       http_method: GET       url: https://api.appstoreconnect.apple.com/v1/salesReports       authenticator:         $ref: "#/definitions/linked/HttpRequester/authenticator"       request_parameters:         filter[frequency]: DAILY         filter[reportDate]: "{{ day_delta(-2, format='%Y-%m-%d') }}"         filter[reportSubType]: SUMMARY         filter[reportType]: SALES         filter[vendorNumber]: "232323"         filter[version]: "1_0"     record_selector:       type: RecordSelector       extractor:         type: CustomRecordExtractor     download_decoder:       type: GzipDecoder       decoder:         type: CsvDecoder         delimiter: "\t"
- The
download_decoder
property is the correct place for your decoder configuration. - It must be a sibling to
requester
and
record_selector
inside the
retriever
block. - The property name
response_decoder
is not recognized and will fail validation. This approach is supported in Airbyte’s config-based connector development and allows you to nest decoders for compressed and delimited files [see YAML reference](https://docs.airbyte.com/platform/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/GzipDecoder). If you use
download_decoder
as shown above, your connector should pass validation and correctly handle gzip-compressed TSV files.
d
@kapa.ai - type: DeclarativeStream name: sales_report retriever: type: SimpleRetriever record_selector: type: RecordSelector extractor: type: CustomRecordExtractor requester: type: HttpRequester http_method: GET url: https://api.appstoreconnect.apple.com/v1/salesReports authenticator: $ref: "#/definitions/linked/HttpRequester/authenticator" request_parameters: filter[frequency]: DAILY filter[reportDate]: "{{ day_delta(-2, format='%Y-%m-%d') }}" filter[reportSubType]: SUMMARY filter[reportType]: SALES filter[vendorNumber]: "121211 " filter[version]: "1_0" response_decoder: type: GzipDecoder decoder: type: CsvDecoder delimiter: "\t" Client error : 400 Bad Request {"detail":"Invalid manifest: Validation against json schema defined in declarative_component_schema.yaml schema failed"}
k
A message from kapa.ai
The error occurs because the property name
response_decoder
is not valid in the
HttpRequester
or
SimpleRetriever
configuration. According to the Airbyte documentation, the correct property to use is
download_decoder
, and it must be placed as a sibling to
requester
and
record_selector
inside the
retriever
block—not inside
requester
. Here is the correct structure:
Copy code
yaml - type: DeclarativeStream   name: sales_report   retriever:     type: SimpleRetriever     requester:       type: HttpRequester       http_method: GET       url: https://api.appstoreconnect.apple.com/v1/salesReports       authenticator:         $ref: "#/definitions/linked/HttpRequester/authenticator"       request_parameters:         filter[frequency]: DAILY         filter[reportDate]: "{{ day_delta(-2, format='%Y-%m-%d') }}"         filter[reportSubType]: SUMMARY         filter[reportType]: SALES         filter[vendorNumber]: "121211"         filter[version]: "1_0"     record_selector:       type: RecordSelector       extractor:         type: CustomRecordExtractor     download_decoder:       type: GzipDecoder       decoder:         type: CsvDecoder         delimiter: "\t"
-
download_decoder
is the correct property and should be at the same level as
requester
and
record_selector
within
retriever
 ([see YAML reference](https://docs.airbyte.com/platform/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/AsyncRetriever)). - Using
response_decoder
will result in a schema validation error, as you experienced. This structure will pass validation and correctly handle gzip-compressed TSV files in Airbyte's declarative connectors.
d
@kapa.ai correct this yaml
Copy code
version: 7.0.4

type: DeclarativeSource

check:
  type: CheckStream
  stream_names:
    - Apps
    - sales_report

definitions:
  linked:
    HttpRequester:
      authenticator:
        type: JwtAuthenticator
        secret_key:  {{config['secret_key']}}
        algorithm: ES256
        token_duration: 1200
        jwt_headers:
          typ: JWT
          kid: 25USMKdfadfasdf
        jwt_payload:
          iss: 1dfadfasdfasdfasdfasdf
          aud: appstoreconnect-v1
    DeclarativeStream: {}

streams:
  - type: DeclarativeStream
    name: Apps
    retriever:
      type: SimpleRetriever
      record_selector:
        type: RecordSelector
        extractor:
          type: DpathExtractor
          field_path:
            - data
      requester:
        type: HttpRequester
        http_method: GET
        url: https://api.appstoreconnect.apple.com/v1/apps
        authenticator:
          $ref: "#/definitions/linked/HttpRequester/authenticator"
        request_parameters:
          fields[apps]: name,bundleId,sku
    schema_loader:
      type: InlineSchemaLoader
      schema:
        type: object
        properties:
          sku:
            type: string
          bundleId:
            type: string
          name:
            type: string
          id:
            type: string
        additionalProperties: true
    transformations:
      - type: FlattenFields
        flatten_lists: true
      - type: RemoveFields
        field_pointers:
          - - self
          - - type
  - type: DeclarativeStream
    name: sales_report
    retriever:
      type: SimpleRetriever
      record_selector:
        type: RecordSelector
        extractor:
          type: CustomRecordExtractor
      requester:
        type: HttpRequester
        http_method: GET
        url: https://api.appstoreconnect.apple.com/v1/salesReports
        authenticator:
          $ref: "#/definitions/linked/HttpRequester/authenticator"
        request_parameters:
          filter[frequency]: DAILY
          filter[reportDate]: "{{ day_delta(-2, format='%Y-%m-%d') }}"
          filter[reportSubType]: SUMMARY
          filter[reportType]: SALES
          filter[vendorNumber]: "1212121"
          filter[version]: "1_0"
        record_selector: 
    schema_loader:
      type: InlineSchemaLoader
      schema:
        type: object
        properties:
          sku:
            type: string
          bundleId:
            type: string
          name:
            type: string
          units:
            type: integer
          country:
            type: string
          developer:
            type: string
        additionalProperties: true
    transformations: []

spec:
  type: Spec
  connection_specification:
    type: object
    required:
      - secret_key
    properties:
      secret_key:
        type: string
        title: Secret Key
        airbyte_secret: true
        order: 0
    additionalProperties: true

metadata:
  testedStreams:
    Apps:
      streamHash: 63fe5b57a4ceda6551353dcaf775b5bc3362a4ec
      isStale: false
      hasResponse: true
      responsesAreSuccessful: true
      hasRecords: true
      primaryKeysArePresent: true
      primaryKeysAreUnique: true
    sales_report:
      streamHash: bf790802080c2388a5fe9a15da27e5982661fc11
      isStale: true
      hasResponse: true
      responsesAreSuccessful: true
      hasRecords: false
      primaryKeysArePresent: true
      primaryKeysAreUnique: true
  autoImportSchema:
    Apps: true
    sales_report: true

concurrency_level:
  type: ConcurrencyLevel
  default_concurrency: 1
k
A message from kapa.ai
Here is your corrected YAML. The main issue was that the
download_decoder
block (not
response_decoder
) must be placed as a sibling to
requester
and
record_selector
inside the
retriever
block of your
sales_report
stream. I also removed the stray
record_selector:
under
requester
in
sales_report
, which is not valid.
Copy code
yaml version: 7.0.4  type: DeclarativeSource  check:   type: CheckStream   stream_names:     - Apps     - sales_report  definitions:   linked:     HttpRequester:       authenticator:         type: JwtAuthenticator         secret_key:  {{config['secret_key']}}         algorithm: ES256         token_duration: 1200         jwt_headers:           typ: JWT           kid: 25USMKdfadfasdf         jwt_payload:           iss: 1dfadfasdfasdfasdfasdf           aud: appstoreconnect-v1     DeclarativeStream: {}  streams:   - type: DeclarativeStream     name: Apps     retriever:       type: SimpleRetriever       record_selector:         type: RecordSelector         extractor:           type: DpathExtractor           field_path:             - data       requester:         type: HttpRequester         http_method: GET         url: https://api.appstoreconnect.apple.com/v1/apps         authenticator:           $ref: "#/definitions/linked/HttpRequester/authenticator"         request_parameters:           fields[apps]: name,bundleId,sku     schema_loader:       type: InlineSchemaLoader       schema:         type: object         properties:           sku:             type: string           bundleId:             type: string           name:             type: string           id:             type: string         additionalProperties: true     transformations:       - type: FlattenFields         flatten_lists: true       - type: RemoveFields         field_pointers:           - - self           - - type   - type: DeclarativeStream     name: sales_report     retriever:       type: SimpleRetriever       requester:         type: HttpRequester         http_method: GET         url: https://api.appstoreconnect.apple.com/v1/salesReports         authenticator:           $ref: "#/definitions/linked/HttpRequester/authenticator"         request_parameters:           filter[frequency]: DAILY           filter[reportDate]: "{{ day_delta(-2, format='%Y-%m-%d') }}"           filter[reportSubType]: SUMMARY           filter[reportType]: SALES           filter[vendorNumber]: "1212121"           filter[version]: "1_0"       record_selector:         type: RecordSelector         extractor:           type: CustomRecordExtractor       download_decoder:         type: GzipDecoder         decoder:           type: CsvDecoder           delimiter: "\t"     schema_loader:       type: InlineSchemaLoader       schema:         type: object         properties:           sku:             type: string           bundleId:             type: string           name:             type: string           units:             type: integer           country:             type: string           developer:             type: string         additionalProperties: true     transformations: []  spec:   type: Spec   connection_specification:     type: object     required:       - secret_key     properties:       secret_key:         type: string         title: Secret Key         airbyte_secret: true         order: 0     additionalProperties: true  metadata:   testedStreams:     Apps:       streamHash: 63fe5b57a4ceda6551353dcaf775b5bc3362a4ec       isStale: false       hasResponse: true       responsesAreSuccessful: true       hasRecords: true       primaryKeysArePresent: true       primaryKeysAreUnique: true     sales_report:       streamHash: bf790802080c2388a5fe9a15da27e5982661fc11       isStale: true       hasResponse: true       responsesAreSuccessful: true       hasRecords: false       primaryKeysArePresent: true       primaryKeysAreUnique: true   autoImportSchema:     Apps: true     sales_report: true  concurrency_level:   type: ConcurrencyLevel   default_concurrency: 1
Key changes: - Used
download_decoder
at the correct location, as per Airbyte's YAML reference for config-based connectors ([see AsyncRetriever reference](https://docs.airbyte.com/platform/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/AsyncRetriever)). - Removed the invalid
record_selector:
under
requester
in
sales_report
. This structure should pass validation and correctly handle gzip-compressed TSV files.
d
@kapa.ai But the below part throws an error
Copy code
record_selector:
          type: RecordSelector
          extractor:
            type: CustomRecordExtractor
        download_decoder:
          type: GzipDecoder
          decoder:
            type: CsvDecoder
            delimiter: "\t" 

Client error : 400 Bad Request {"detail":"Invalid manifest: Validation against json schema defined in declarative_component_schema.yaml schema failed"}
k
A message from kapa.ai
Based on the official Airbyte documentation, the correct property for decoding downloaded files in a declarative connector is
download_decoder
, and it must be placed as a sibling to
requester
and
record_selector
inside the
retriever
block. The structure you posted is correct according to the schema:
Copy code
yaml retriever:   type: SimpleRetriever   requester:     ...   record_selector:     type: RecordSelector     extractor:       type: CustomRecordExtractor   download_decoder:     type: GzipDecoder     decoder:       type: CsvDecoder       delimiter: "\t"
This is supported by the YAML schema for Airbyte declarative connectors, which specifies that
download_decoder
is a valid property of the retriever object, and it can be nested as shown above [see AsyncRetriever reference](https://docs.airbyte.com/platform/next/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/AsyncRetriever). If you are still receiving a schema validation error, there are a few possibilities: 1. CustomRecordExtractor: The knowledge sources do not provide details about the required or allowed properties for
CustomRecordExtractor
. If this extractor is not supported or requires additional configuration, it could cause validation to fail. 2. YAML Formatting: Ensure your YAML is properly indented and formatted, as incorrect indentation can cause schema errors. 3. Airbyte Version: Make sure you are using a version of Airbyte that supports the
download_decoder
property in the declarative YAML. This property is documented in recent versions. If you have confirmed the above and the error persists, the knowledge sources do not provide enough information to diagnose a deeper issue with
CustomRecordExtractor
or other advanced extractor types. You may want to try using a standard extractor (like
DpathExtractor
) to see if the error is related to the extractor type. Summary: Your use of
download_decoder
is correct per the documentation. If you still get a schema error, the issue may be with the extractor or another part of your configuration, but the knowledge sources do not provide enough detail to confirm this. [Reference: AsyncRetriever object and download_decoder property](https://docs.airbyte.com/platform/next/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/AsyncRetriever)
d
@kapa.ai builder throws an error This stream relies on custom component code to execute, which is not currently supported in this deployment of Airbyte. Learn more here. when change to custom Record Extractor
k
A message from kapa.ai
The error message you are seeing—**"This stream relies on custom component code to execute, which is not currently supported in this deployment of Airbyte"**—means that your Airbyte deployment does not have support for Custom Components enabled. The
CustomRecordExtractor
is a custom component, and by default, Airbyte disables this feature due to security concerns. To use custom components (like
CustomRecordExtractor
) in the Connector Builder, you must enable the UNSAFE and EXPERIMENTAL custom component feature in your self-managed Airbyte deployment. This is done by setting the
AIRBYTE_ENABLE_UNSAFE_CODE
environment variable to
"true"
for both the
workload-launcher
and
connector-builder-server
services. You can enable this feature by updating your
values.yaml
and redeploying Airbyte, as described in the documentation:
Copy code
yaml workload-launcher:     extraEnv:       - name: AIRBYTE_ENABLE_UNSAFE_CODE         value: "true"   connector-builder-server:     extraEnv:       - name: AIRBYTE_ENABLE_UNSAFE_CODE         value: "true"
After updating your configuration, redeploy Airbyte using your deployment method (e.g.,
abctl
or Helm). Note: This feature is considered unsafe and experimental, as it allows execution of arbitrary code in your Airbyte environment. Use it with caution and only in trusted environments [How to enable Custom Components](https://docs.airbyte.com/platform/1.7/connector-development/connector-builder-ui/custom-components#how-to-enable-custom-components). If you are using Airbyte Cloud, custom components are not supported and cannot be enabled [Custom components for the Connector Builder](https://docs.airbyte.com/platform/1.7/connector-development/connector-builder-ui/custom-components). Summary: You must enable custom components in your self-managed deployment to use
CustomRecordExtractor
. This is not available in Airbyte Cloud.
d
@kapa.ai I am using Airbyte Cloud to read the gzip file from the response
Copy code
"headers": {
    "Server": "daiquiri/5",
    "Date": "Fri, 12 Sep 2025 09:11:48 GMT",
    "Content-Type": "application/a-gzip",
    "Content-Length": "59717",
    "Connection": "keep-alive",
    "x-b3-spanid": "afa73ca518dae31a",
    "b3": "001b9a3491edc04f1d09760fe43c7351-afa73ca518dae31a",
    "x-responding-instance": "ac-gateway-api:ac-gateway-api-main-6b5c8746b4-h46kv:ac-gateway-api-main-6b5c8746b4-h46kv:-1::::",
    "apple-timing-app": "415 ms",
    "x-unicorn-originated": "true",
    "x-b3-parentspanid": "8fbe82514ede9144",
    "X-B3-TraceId": "aae8cb80e5b4a51a",
    "Strict-Transport-Security": "max-age=31536000; includeSubDomains",
    "X-Request-ID": "AANZUNER5XAE6HIJOYH6IPDTKE",
    "X-Rate-Limit": "user-hour-lim:3600;user-hour-rem:3599;",
    "X-Apple-Jingle-Correlation-Key": "AANZUNER5XAE6HIJOYH6IPDTKE",
    "x-daiquiri-instance": "daiquiri:38493002:pv50p00it-hyhk10063901:7987:25RELEASE110:daiquiri-amp-all-shared-ext-001-pv"
  }
k
A message from kapa.ai
If you are using Airbyte Cloud, you cannot use custom components such as
CustomRecordExtractor
because custom code execution is not supported in Airbyte Cloud deployments. However, you can still handle gzip-compressed files using the download_decoder feature in declarative connectors, as long as you use only the built-in, supported decoders. For your use case (a gzip-compressed TSV file with
Content-Type: application/a-gzip
), you should configure your stream in the Connector Builder like this:
Copy code
yaml retriever:   type: SimpleRetriever   requester:     type: HttpRequester     http_method: GET     url: https://api.appstoreconnect.apple.com/v1/salesReports     # ... other config ...   record_selector:     type: RecordSelector     extractor:       type: DpathExtractor       field_path: []  # Use an empty list if the TSV is flat and not nested   download_decoder:     type: GzipDecoder     decoder:       type: CsvDecoder       delimiter: "\t"
Key points: - Use
download_decoder
as a sibling to
requester
and
record_selector
inside the
retriever
block. - Use only built-in extractors like
DpathExtractor
(not
CustomRecordExtractor
), since custom code is not supported in Airbyte Cloud. - Set
field_path: []
if your TSV data is flat (not nested in a JSON structure). This configuration is supported and documented for handling gzip and CSV/TSV files in Airbyte’s declarative connectors [see ZIP and gzip documentation](https://docs.airbyte.com/platform/connector-development/connector-builder-ui/record-processing#zip-and-gzip). If your data is not being parsed as expected, double-check that your extractor and schema match the structure of the decompressed TSV file. If you need to do more advanced parsing that requires custom code, this is not possible in Airbyte Cloud as per the current documentation [Custom components for the Connector Builder](https://docs.airbyte.com/platform/1.7/connector-development/connector-builder-ui/custom-components). Summary: You can handle gzip-compressed TSV files in Airbyte Cloud using
download_decoder
with built-in decoders and extractors, but you cannot use custom code or custom extractors.
d
@kapa.ai I have updated yaml like below. still the response is
binary gzip
Copy code
- type: DeclarativeStream
    retriever:
      type: SimpleRetriever
      record_selector:
        type: RecordSelector
        extractor:
          type: DpathExtractor
          field_path: []
      download_decoder:
        type: GzipDecoder
        decoder:
          type: CsvDecoder
          quotechar: "\""
      requester:
        type: HttpRequester
        http_method: GET
        url: https://api.appstoreconnect.apple.com/v1/salesReports
        authenticator:
          $ref: "#/definitions/linked/HttpRequester/authenticator"
        request_parameters:
          filter[version]: "1_0"
          filter[frequency]: DAILY
          filter[reportDate]: "{{ day_delta(-2, format='%Y-%m-%d') }}"
          filter[reportType]: SALES
          filter[vendorNumber]: "123455"
          filter[reportSubType]: SUMMARY
Copy code
"headers": {
    "Server": "daiquiri/5",
    "Date": "Fri, 12 Sep 2025 11:21:56 GMT",
    "Content-Type": "application/a-gzip",
    "Content-Length": "59717",
    "Connection": "keep-alive",
    "x-b3-spanid": "b0a196aa8318237e",
    "b3": "dee058035a3ed0475b210b85c9f330f5-b0a196aa8318237e",
    "x-responding-instance": "ac-gateway-api:ac-gateway-api-main-8488745884-dhvl7:ac-gateway-api-main-8488745884-dhvl7:-1::::",
    "apple-timing-app": "446 ms",
    "x-unicorn-originated": "true",
    "x-b3-parentspanid": "8916564e22464de5",
    "X-B3-TraceId": "4e6fa33662555dd4",
    "Strict-Transport-Security": "max-age=31536000; includeSubDomains",
    "X-Request-ID": "33QFQA22H3IEOWZBBOC4T4ZQ6U",
    "X-Rate-Limit": "user-hour-lim:3600;user-hour-rem:3597;",
    "X-Apple-Jingle-Correlation-Key": "33QFQA22H3IEOWZBBOC4T4ZQ6U",
    "x-daiquiri-instance": "daiquiri:18493001:mr85p00it-hyhk03154801:7987:25RELEASE110:daiquiri-amp-all-shared-ext-001-mr"
  }
k
A message from kapa.ai
Your YAML configuration for handling a gzip-compressed TSV file in Airbyte Cloud is correct according to the official documentation. You are using the
download_decoder
property with a
GzipDecoder
and a nested
CsvDecoder
, which is the recommended approach for decompressing and parsing such files:
Copy code
yaml download_decoder:   type: GzipDecoder   decoder:     type: CsvDecoder     quotechar: "\""
This should instruct Airbyte to decompress the gzip response and then parse the resulting TSV/CSV data. The
field_path: []
in your
DpathExtractor
is also correct for flat files. However, if you are still seeing the response as "binary gzip" in Airbyte Cloud, there are a few possibilities: 1. Content-Type Handling: Airbyte's built-in decoders are typically triggered by standard content types like
application/gzip
or
application/zip
. Your API returns
Content-Type: application/a-gzip
, which is non-standard. The knowledge sources do not explicitly state whether Airbyte's decoder will trigger on this non-standard content type. If Airbyte does not recognize this content type, it may not apply the decoder as expected. 2. Cloud Limitations: There is no explicit mention in the knowledge sources that Airbyte Cloud has additional restrictions on built-in decoders, but if the decoder is not being applied, it could be due to a limitation or a bug in how Airbyte Cloud handles non-standard content types. 3. No Error, Just Raw Output: If Airbyte is not throwing an error but is outputting the raw gzip binary, it suggests the decoder is not being invoked. What you can do: - Double-check that your YAML is formatted and indented correctly (which it appears to be). - If possible, try to set the
Content-Type
header in your request to
application/gzip
(if the API allows it), though this is unlikely with a third-party API. - If you have access to Airbyte support or can file an issue, provide them with the details about the non-standard
Content-Type
and your configuration. Summary: Your configuration matches the documented approach for handling gzip-compressed files in Airbyte. The likely cause of the issue is that Airbyte Cloud does not recognize the non-standard
Content-Type: application/a-gzip
and therefore does not apply the decoder. The knowledge sources do not provide a workaround for this scenario, and there is no documented way to force the decoder to run regardless of content type. If you need further assistance, you may need to contact Airbyte support or request an enhancement to support non-standard gzip content types in Airbyte Cloud. [Reference: ZIP and gzip handling in Connector Builder](https://docs.airbyte.com/platform/connector-development/connector-builder-ui/record-processing#zip-and-gzip) [Reference: GzipDecoder YAML reference](https://docs.airbyte.com/platform/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/GzipDecoder)
d
@kapa.ai The API responds with
Content-Type: application/a-gzip
(non-standard). My connector YAML uses
download_decoder: GzipDecoder → CsvDecoder
, which works for
application/gzip
, but in Airbyte Cloud the decoder isn’t triggered. Instead I just get the raw binary gzip back. Expected:
GzipDecoder
should run and parse the TSV inside. Actual: Response is stored as raw binary. Is there a way to force Airbyte Cloud to apply the decoder for
application/a-gzip
, or could support for this MIME type be added?
k
A message from kapa.ai
New message text here