Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
fix(desktop): increase bundle download timeout (#4844)
Shreyas8319914cafb3
diff --git a/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-appload/src/api/client.rs b/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-appload/src/api/client.rsindex d58875e83..f95ec3ba9 100644--- a/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-appload/src/api/client.rs+++ b/packages/hoppscotch-desktop/plugin-workspace/tauri-plugin-appload/src/api/client.rs@@ -58,7 +58,17 @@ impl ApiClient {tracing::debug!(bundle_name = name, "Downloading bundle");let url = self.build_url(&format!("/api/{API_VERSION}/bundle"))?;- let response = self.client.get(url).send().await.map_err(|e| {+ let download_client = HttpClient::builder()+ .timeout(10 * DEFAULT_TIMEOUT)+ .user_agent(format!(+ "{}/{}",+ env!("CARGO_PKG_NAME"),+ env!("CARGO_PKG_VERSION")+ ))+ .build()+ .map_err(ApiError::RequestFailed)?;++ let response = download_client.get(url).send().await.map_err(|e| {tracing::error!(bundle_name = name, error = %e, "Download request failed");ApiError::RequestFailed(e)})?;diff --git a/packages/hoppscotch-desktop/src-tauri/Cargo.lock b/packages/hoppscotch-desktop/src-tauri/Cargo.lockindex febc03896..fd4ebc410 100644--- a/packages/hoppscotch-desktop/src-tauri/Cargo.lock+++ b/packages/hoppscotch-desktop/src-tauri/Cargo.lock@@ -4972,7 +4972,7 @@ dependencies = [[[package]]name = "tauri-plugin-appload"version = "0.1.0"-source = "git+https://github.com/CuriousCorrelation/tauri-plugin-appload#e44d90aefb8d930044643b41fa1ce739e49d456c"+source = "git+https://github.com/CuriousCorrelation/tauri-plugin-appload#1c2e8b19db7f1b6af6d00abb907f15cdc2017298"dependencies = ["base64 0.22.1","blake3",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 6312251fb..709d4e8b5 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -519,7 +519,7 @@ importers:version: link:../hoppscotch-kernel'@hoppscotch/plugin-appload':specifier: github:CuriousCorrelation/tauri-plugin-appload- version: '@CuriousCorrelation/plugin-appload@https://codeload.github.com/CuriousCorrelation/tauri-plugin-appload/tar.gz/e44d90aefb8d930044643b41fa1ce739e49d456c'+ version: '@CuriousCorrelation/plugin-appload@https://codeload.github.com/CuriousCorrelation/tauri-plugin-appload/tar.gz/1c2e8b19db7f1b6af6d00abb907f15cdc2017298''@hoppscotch/ui':specifier: 0.2.2version: 0.2.2([email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected]))([email protected]([email protected]))@@ -977,7 +977,7 @@ importers:version: link:../hoppscotch-kernel'@hoppscotch/plugin-appload':specifier: github:CuriousCorrelation/tauri-plugin-appload- version: '@CuriousCorrelation/plugin-appload@https://codeload.github.com/CuriousCorrelation/tauri-plugin-appload/tar.gz/e44d90aefb8d930044643b41fa1ce739e49d456c'+ version: '@CuriousCorrelation/plugin-appload@https://codeload.github.com/CuriousCorrelation/tauri-plugin-appload/tar.gz/1c2e8b19db7f1b6af6d00abb907f15cdc2017298''@hoppscotch/ui':specifier: 0.2.1version: 0.2.1([email protected]([email protected]))([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected]))([email protected]([email protected]))@@ -1805,8 +1805,8 @@ packages:graphql:optional: true- '@CuriousCorrelation/plugin-appload@https://codeload.github.com/CuriousCorrelation/tauri-plugin-appload/tar.gz/e44d90aefb8d930044643b41fa1ce739e49d456c':- resolution: {tarball: https://codeload.github.com/CuriousCorrelation/tauri-plugin-appload/tar.gz/e44d90aefb8d930044643b41fa1ce739e49d456c}+ '@CuriousCorrelation/plugin-appload@https://codeload.github.com/CuriousCorrelation/tauri-plugin-appload/tar.gz/1c2e8b19db7f1b6af6d00abb907f15cdc2017298':+ resolution: {tarball: https://codeload.github.com/CuriousCorrelation/tauri-plugin-appload/tar.gz/1c2e8b19db7f1b6af6d00abb907f15cdc2017298}version: 0.1.0'@CuriousCorrelation/plugin-relay@https://codeload.github.com/CuriousCorrelation/tauri-plugin-relay/tar.gz/4b96e40170c65189144299d896b7e97803f13cca':@@ -13232,7 +13232,7 @@ snapshots:optionalDependencies:graphql: 16.9.0- '@CuriousCorrelation/plugin-appload@https://codeload.github.com/CuriousCorrelation/tauri-plugin-appload/tar.gz/e44d90aefb8d930044643b41fa1ce739e49d456c':+ '@CuriousCorrelation/plugin-appload@https://codeload.github.com/CuriousCorrelation/tauri-plugin-appload/tar.gz/1c2e8b19db7f1b6af6d00abb907f15cdc2017298':dependencies:'@tauri-apps/api': 2.1.1