auto prepend scheme to url (#1335)

This commit is contained in:
LawyZheng
2024-12-06 11:56:12 +08:00
committed by GitHub
parent db5b9d1dbd
commit 873b484ffa
5 changed files with 72 additions and 16 deletions

View File

@@ -504,11 +504,9 @@ class CachedActionPlanError(SkyvernException):
super().__init__(message)
class InvalidUrl(SkyvernHTTPException):
class InvalidUrl(SkyvernException):
def __init__(self, url: str) -> None:
super().__init__(
f"Invalid URL: {url}. Skyvern supports HTTP and HTTPS urls.", status_code=status.HTTP_400_BAD_REQUEST
)
super().__init__(f"Invalid URL: {url}. Skyvern supports HTTP and HTTPS urls with max 2083 character length.")
class BlockedHost(SkyvernHTTPException):