Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
fix url encoding (#2135)
Shuchang Zhengcb46232cff02
diff --git a/skyvern/forge/sdk/api/files.py b/skyvern/forge/sdk/api/files.pyindex 1e4c89384..ea5c61de6 100644--- a/skyvern/forge/sdk/api/files.py+++ b/skyvern/forge/sdk/api/files.py@@ -12,7 +12,6 @@ from urllib.parse import unquote, urlparseimport aiohttpimport structlogfrom multidict import CIMultiDictProxy-from yarl import URLfrom skyvern.config import settingsfrom skyvern.constants import BROWSER_DOWNLOAD_TIMEOUT, BROWSER_DOWNLOADING_SUFFIX, REPO_ROOT_DIR@@ -84,7 +83,7 @@ async def download_file(url: str, max_size_mb: int | None = None) -> str:async with aiohttp.ClientSession(raise_for_status=True) as session:LOG.info("Starting to download file", url=url)- async with session.get(URL(url, encoded=True)) as response:+ async with session.get(url) as response:# Check the content length if availableif max_size_mb and response.content_length and response.content_length > max_size_mb * 1024 * 1024:# todo: move to root exception.py