From 9c2c258a269f917ee12f1c3d7cda115ab3963d9e Mon Sep 17 00:00:00 2001 From: Raminder Singh Date: Sat, 10 Aug 2024 21:02:30 +0530 Subject: [PATCH] fix error about invalid certificate when calling append_rows api (#107) Thanks @imor for this fix. --- src/storage.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/storage.rs b/src/storage.rs index ef0f0c4..751e4f1 100644 --- a/src/storage.rs +++ b/src/storage.rs @@ -140,7 +140,9 @@ impl StorageApi { } pub(crate) async fn new_write_client() -> Result, 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()