From 8c2cd743cd1fa2d5a7213d2c2289725e4ca9b3ad Mon Sep 17 00:00:00 2001 From: Stanislav Novosad Date: Tue, 7 Oct 2025 10:58:41 -0600 Subject: [PATCH] Increase bitwarden timeout to 30s (#3637) --- skyvern/forge/sdk/services/bitwarden.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/skyvern/forge/sdk/services/bitwarden.py b/skyvern/forge/sdk/services/bitwarden.py index 080bfda2..78a2debb 100644 --- a/skyvern/forge/sdk/services/bitwarden.py +++ b/skyvern/forge/sdk/services/bitwarden.py @@ -723,7 +723,7 @@ class BitwardenService: @staticmethod async def _get_login_item_by_id_using_server(item_id: str) -> PasswordCredential: response = await aiohttp_get_json( - f"{BITWARDEN_SERVER_BASE_URL}/object/item/{item_id}", retry=3, retry_timeout=15 + f"{BITWARDEN_SERVER_BASE_URL}/object/item/{item_id}", retry=3, retry_timeout=30 ) if not response or response.get("success") is False: raise BitwardenGetItemError(f"Failed to get login item by ID: {item_id}") @@ -882,7 +882,7 @@ class BitwardenService: @staticmethod async def _create_collection_using_server(bw_organization_id: str, name: str) -> str: collection_template_response = await aiohttp_get_json( - f"{BITWARDEN_SERVER_BASE_URL}/object/template/collection", retry=3, retry_timeout=15 + f"{BITWARDEN_SERVER_BASE_URL}/object/template/collection", retry=3, retry_timeout=30 ) collection_template = collection_template_response["data"]["template"] @@ -925,7 +925,7 @@ class BitwardenService: async def _get_items_by_item_ids_using_server(item_ids: list[str]) -> list[CredentialItem]: responses = await asyncio.gather( *[ - aiohttp_get_json(f"{BITWARDEN_SERVER_BASE_URL}/object/item/{item_id}", retry=3, retry_timeout=15) + aiohttp_get_json(f"{BITWARDEN_SERVER_BASE_URL}/object/item/{item_id}", retry=3, retry_timeout=30) for item_id in item_ids ] ) @@ -948,7 +948,7 @@ class BitwardenService: @staticmethod async def _get_collection_items_using_server(collection_id: str) -> list[CredentialItem]: response = await aiohttp_get_json( - f"{BITWARDEN_SERVER_BASE_URL}/list/object/items?collectionId={collection_id}", retry=3, retry_timeout=15 + f"{BITWARDEN_SERVER_BASE_URL}/list/object/items?collectionId={collection_id}", retry=3, retry_timeout=30 ) if not response or response.get("success") is False: raise BitwardenGetItemError("Failed to get collection items") @@ -971,7 +971,7 @@ class BitwardenService: @staticmethod async def _get_credential_item_by_id_using_server(item_id: str) -> CredentialItem: response = await aiohttp_get_json( - f"{BITWARDEN_SERVER_BASE_URL}/object/item/{item_id}", retry=3, retry_timeout=15 + f"{BITWARDEN_SERVER_BASE_URL}/object/item/{item_id}", retry=3, retry_timeout=30 ) if not response or response.get("success") is False: raise BitwardenGetItemError(f"Failed to get credential item by ID: {item_id}")