Vishal Garg
10/05/2026, 7:40 AMkapa.ai
10/05/2026, 7:40 AMTypeError: _GzipDecoder.decompress() got an unexpected keyword argument 'max_length' or decompressive transcoding issues) [source-Google Cloud Storage (GCS)] connector fails on files with Content-Encoding: gzip in Airbyte Cloud, [SourceGCSStreamReader]:
• Cause: GCS blobs sometimes carry the metadata header Content-Encoding: gzip even when the underlying file is uncompressed (common with files automatically generated by Google Play reports) [source-Google Cloud Storage (GCS)] connector fails on files with Content-Encoding: gzip in Airbyte Cloud.
• Fix: Update to the latest version of the source-gcs connector, or remove the metadata header directly using gsutil [source-Google Cloud Storage (GCS)] connector fails on files with Content-Encoding: gzip in Airbyte Cloud:gsutil setmeta -h "Content-Encoding:" gs://your-bucket/path-to-file
2. URL Query Parameters Injected into Schema (Parquet Files) If you are reading Parquet files and notice gibberish column names (such as ...parquet?X-Goog-Algorithm) repeatedly altering your Snowflake table schema [GCS] Unwanted column with name 2026_06_29_1782736372647_0.parquet?X-Goog-Algorithm coming in connection:
• Cause: In older versions of source-gcs, signed-URL query parameters were mistakenly treated by the Parquet parser as Hive partition columns [GCS] Unwanted column with name 2026_06_29_1782736372647_0.parquet?X-Goog-Algorithm coming in connection, [SourceGCSStreamReader].
• Fix: Upgrade the GCS Source connector to the latest version, which uses canonical gs:// URIs internally to prevent query string leakage into schemas [SourceGCSStreamReader].
3. Snowflake Destination Staging Configuration If the error occurs on the destination side when staging data:
• Note that starting with destination-snowflake version 2.0.0, external staging via GCS/S3 is no longer supported [Upgrading to 2.0.0].
• Make sure your Snowflake destination is configured to use the Internal Staging option [Upgrading to 2.0.0].
4. GCS Permissions / Credentials Error If you receive access errors (such as 403 Forbidden or InvalidSecurity) [BigQuery GCS staging failed, GCS destinaltion connection failed]:
• Ensure your Google Service Account or HMAC credentials have sufficient permissions to list, read objects, and read bucket metadata [BigQuery GCS staging failed].
If none of these match your issue, please share the exact error message and stack trace from your sync logs, along with the connector versions in use, to help pinpoint the solution. 👍 0 button 👎 0 button ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.Vishal Garg
10/05/2026, 7:40 AMkapa.ai
10/05/2026, 7:40 AMValueError: Unsupported avro type: ['null', 'long']
airbyte_cdk.sources.file_based.exceptions.SchemaInferenceError: Error inferring schema from files.
Cause In Avro schemas, optional/nullable fields are represented as union types containing "null" and the base type (in this case, ['null', 'long']). When the source connector attempts to infer the schema from your file (2026_02_05_1770275330582_2.avro), AvroParser._convert_avro_type_to_json fails because it expects a primitive type rather than a list/union representing nullable fields [JSON to Avro Conversion].
Potential Workarounds 1. Check for Connector Updates:
If you are running an older version of the source-gcs connector, update it to the latest version to see if support for Avro union types/nullable fields has been resolved in the CDK's Avro parser.
2. Convert or Export to Parquet/JSONL/CSV:
If the upstream system generating these files is under your control (or if you can sync them as Parquet or JSONL), consider writing the data in Parquet or JSON format instead, which have broader parser support in the file-based connector framework.
3. Report or Track the Issue:
Because this is an unhandled case in the Python CDK's avro_parser.py, consider opening an issue on the Airbyte GitHub repository or contacting Airbyte Support with this stack trace so support for union/nullable Avro schemas can be patched. 👍 0 button 👎 0 button ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.