{"record":{"id":"1a7adb3f74b48649","repo":"cube-js/cube","slug":"unsupported-export-bucket-type-this-config-expo","errorCode":null,"errorMessage":"Unsupported export bucket type: ${this.config.exportBucket.bucketType}","messagePattern":"Unsupported export bucket type: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/cubejs-snowflake-driver/src/SnowflakeDriver.ts","lineNumber":547,"sourceCode":"   * Determines whether export bucket feature is configured or not.\n   */\n  public async isUnloadSupported() {\n    return this.config.exportBucket !== undefined;\n  }\n\n  /**\n   * Returns to the Cubestore an object with links to unloaded to the\n   * export bucket data.\n   */\n  public async unload(\n    tableName: string,\n    options: UnloadOptions,\n  ): Promise<DownloadTableCSVData> {\n    if (!this.config.exportBucket) {\n      throw new Error('Export bucket is not configured.');\n    }\n    if (!SUPPORTED_BUCKET_TYPES.includes(this.config.exportBucket.bucketType as string)) {\n      throw new Error(`Unsupported export bucket type: ${\n        this.config.exportBucket.bucketType\n      }`);\n    }\n\n    const { types, exportedCount } = options.query\n      ? await this.unloadWithSql(tableName, options)\n      : await this.unloadWithTable(tableName, options);\n    // Snowflake doesn't produce csv files if no data is exported (no data rows)\n    // so it's important not to call getCsvFiles(), because it checks for empty files list\n    // and throws an error.\n    const csvFile = exportedCount > 0 ? await this.getCsvFiles(tableName) : [];\n\n    return {\n      exportBucketCsvEscapeSymbol: this.config.exportBucketCsvEscapeSymbol,\n      csvFile,\n      types,\n      csvNoHeader: true,\n    };","sourceCodeStart":529,"sourceCodeEnd":565,"githubUrl":"https://github.com/cube-js/cube/blob/7d981676b36392fec34088b9afab6bdcad40207c/packages/cubejs-snowflake-driver/src/SnowflakeDriver.ts#L529-L565","documentation":"Thrown by unload when config.exportBucket.bucketType is set but is not one of the SUPPORTED_BUCKET_TYPES accepted by the Snowflake driver — a guard against a mis-typed CUBEJS_DB_EXPORT_BUCKET_TYPE value that slipped past configuration validation.","triggerScenarios":"Thrown at packages/cubejs-snowflake-driver/src/SnowflakeDriver.ts:547 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set CUBEJS_DB_EXPORT_BUCKET_TYPE to a supported value (s3 or gcs)","Check for typos or surrounding whitespace in the environment variable","Upgrade the driver package if a newer bucket type is expected to be supported"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7d981676b36392fec34088b9afab6bdcad40207c","analyzedAt":"2026-09-02T03:45:10.400Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T15:18:49.778Z"}