Skip to content

Commit

Permalink
fix error about invalid certificate when calling append_rows api (#107)
Browse files Browse the repository at this point in the history
Thanks @imor for this fix.
  • Loading branch information
imor committed Aug 10, 2024
1 parent ecfbe9a commit 9c2c258
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,9 @@ impl StorageApi {
}

pub(crate) async fn new_write_client() -> Result<BigQueryWriteClient<Channel>, BQError> {
let tls_config = ClientTlsConfig::new().domain_name(BIGQUERY_STORAGE_API_DOMAIN);
let tls_config = ClientTlsConfig::new()
.domain_name(BIGQUERY_STORAGE_API_DOMAIN)
.with_native_roots();
let channel = Channel::from_static(BIG_QUERY_STORAGE_API_URL)
.tls_config(tls_config)?
.connect()
Expand Down

0 comments on commit 9c2c258

Please sign in to comment.