diff --git a/changes/3235.fix.md b/changes/3235.fix.md new file mode 100644 index 0000000000..14277efc9a --- /dev/null +++ b/changes/3235.fix.md @@ -0,0 +1 @@ +Fix CLI test failures caused by `yarl.URL._val` type change. diff --git a/src/ai/backend/client/auth.py b/src/ai/backend/client/auth.py index 5719a0e18e..a9cec5fdee 100644 --- a/src/ai/backend/client/auth.py +++ b/src/ai/backend/client/auth.py @@ -50,7 +50,7 @@ def generate_signature( Generates the API request signature from the given parameters. """ hash_type = hash_type - hostname = endpoint._val.netloc # type: ignore + hostname = endpoint.raw_authority body_hash = hashlib.new(hash_type, b"").hexdigest() sign_str = "{}\n{}\n{}\nhost:{}\ncontent-type:{}\nx-backendai-version:{}\n{}".format( # noqa